Hi Arnab, thanks for trying some more things and printing out the MPS (in order to see it's bond dimension 1). So the issue is that you have not set any DMRG accuracy / sweeping parameters besides the number of sweeps. If you add a line like:
maxdim!(sweeps,10,20,40,80,100,200,400)
before you call DMRG then the bond dimension will be allowed to grow. I'd also recommend setting a cutoff, such as
cutoff!(sweeps,1E-8)
Hope that fixes things! Good idea to do 50 sweeps for an excited state. It's best to do at least 20 for those, or as many as needed until the energy is barely changing in the last 5 sweeps or so.
Best,
Miles