Seems to be a faulty EGL implementation. The only workaround is to keep opening overview everytime the panel or a window gets stuck.
This bug was confirmed by KDE devs as something they cannot fix themselves. It is pretty severe for daily usage.
Running a GTX 1060 with Nvidia 555.58.02 driver, in Fedora 40.