When using a tablet xp-pen g960s in krita, my stylus constantly loses contact with the program, when I rotate the canvas or draw a line, this is not observed in other programs, I tried changing firewood, updating the program and setting brushes, nothing helped. .
XP-Pen tablets use a companion app called Pentablet to operate the pen that comes with XP-Pen tablet. Try opening that app and using the pen pressure test settings within the app to see if your pen is working correctly. If not, I would suspect the pen itself is malfunctioning.
It’s possible the tablet itself has dead areas. Contact XP-Pen for more options. Hope you get it fixed soon.