@rio sounds like a screen tablet, im assuming you've played with open tablet driver as well? Assuming your specific xp pen is listed as supported.
Wayland is way more fragments on tablet stuff, it depends on your desktop (gnome/KDE should work fine. Wlroots desktops are hit and miss depending on if they implemented it. Others may omit support). I've not played with screen tablets so I cannot be of more help here unfortunately.
Also keep in mind krita is xwayland only. This SHOULDN'T matter but its a back or your head thing to check into if you find yourself hitting your head on a wall.