I have a solution, the analysis was right, xwayland was the issue, for some reason I cannot download it via “sudo apt-get install xwayland=2:24.1.9-1”
But i managed to download the .deb and run it with “sudo dpkg -i xwayland_24.1.9-1_amd64.deb”
Krita works now. Now I just hope it didn’t break something else.