You can fix this with registry change:Mine does it too but it does not concern me. I believe it has something to do with the display handshake Windows does when waking from sleep, similar to what a laptop does when connected to an external display.
https://www.performance-computer.com/learn/prevent-windows-10-from-resizing-open-windows/