There's lag when switching between documents only in versions after 7.4

Hi, Windows 10 user here,

I use Groupy by Stardock to group windows together with tabs at the top.

It works perfectly for LibreOffice Writer versions before 7.5; in more recent versions there is significant lag when switching between documents.

Version 7.4 seems to have issues with my dark theme, often making the menu text unreadable. So I’d like to use the latest versions of LibreOffice ideally.

It’s not an issue with Groupy because it works with every other program as well as LibreOffice 7.4 and earlier.

Does anyone have a solution to my lag issue, or any ideas of why newer versions cause switching between documents to lag, but not versions before 7.5?

I made a video to illustrate the issue: