Inconsistent PSD depending on window length

I feel it is important to add to this thread that this issue does not appear to be happening when I compute the PSD using different window lengths for real data, but only for simulated data (through NeuroDSP for peaks).

I'm scratching my head on this one...