47GB RAM usage from kwin_wayland after wake up

Hi there.
I am having a very high memory usage after sleeping and waking my system up. I have 64GB ram and when the system wakes up I see a very high ram usage. In htop, kwin_wayland seems to be using around 75% CPU and 75% RAM (47GB).


image

I’ve Fedora 41 as OS, KDE as desktop environment, sddm as display manager, nvidia as gpu and I have proprietary drivers installed.

Sleep feature is basically unusable at the moment. I get OOM and full system freeze issues if I start something that use some RAM like a browser, VSCode, or a virtual machine after waking up. It basically consumes all available ram and I am guessing high cpu usage is caused by garbage collector.