Actually it is not only "window preview" problem.
It is related to mozjs garbage collector (I think).
You can follow the issue on gnome gitlab:
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
gnome-shell uses lots of memory, and grows over time
To manage notifications about this bug go to:
desktop-bugs mailing list