Drift of the system in the periodic box during simulations

GROMACS version: 2023.2
(I also tried to use older version - Gromacs 2018.1, but the error remained)

Hello,
I came across an error during a longtime MD simulation of the layered system based of two different polymers (colored in red and blue in the snapshots).
As far as I understand from the visual analysis of the trajectory, there is a drift of the center of mass of the system during the longtime simulation (a significant movement of the entire system across the periodic box). The snapshots for some frames of the trajectory during the simulation are attached.
I used semi-isotropic Parrinello-Rahman barostat and Nose-Hoover thermostat for the simulation. The problem disappeared when I switched to c-rescale barostat and v-rescale thermostat instead of Parrinello-Rahman/Nose-Hoover. There was also no drift for the case of no pressure coupling (Pcoupl = no). What could be the reason for this error? How can this error be fixed for the simulation with Parrinello-Rahman barostat and Nose-Hoover thermostat?

The above-described problem occurred only for one system, for other systems based on other pairs of polymers, there were no drift during the simulations using the same mdp parameters and Parrinello-Rahman barostat.

Some crucial mdp parameters that was used:
constraints = all-bonds
integrator = md
dt = 0.001
nstcomm = 1
nstxtcout = 1000
nstlist = 10
coulombtype = PME
Tcoupl = nose-hoover
tc-grps = System
tau_t = 0.5
ref_t = 550
gen_vel = no
pbc = xyz
Pcoupl = Parrinello-Rahman
Pcoupltype = semiisotropic
tau_p = 5
compressibility = 4.5e-5 0
ref_p = 1 1

Help is very much appreciated, thanks in advance!

I don’t know why this happens. I don’t think this causes any problems though.

tau_t=0.5 is rather short with a Nose-Hoover thermostat.

We nowadays recommend V-rescale and C-rescale.

Note that nstcomm=1 might case significant overhead. Using the default 100 should be fine for any system.

Thank you, Professor Hess, for your reply!