Starting density of a polymer sample before relaxation

There are also one other thing to consider such as bonds crossing periodic boundaries when adjusting the box size when you want to lower the density.
You will quickly run into a warning like
“Inconsistent image flags”

Although this is not a problem when running dynamics but will be a problem if you try to use the replicate command if you want to use more chains.

Good luck