I'm not familiar with "KRITA" but the first place I start when an app like Ai starts playing up is to delete/empty the preferences folder.
This just reverts all the settings back to standard and shouldn't mess anything up.
Which make/model of tablet are you using, and with which operating system? Check you have the latest drivers installed for your tablet and ensure any driver or software related to your tablet have permission to run. On mac the drivers need 'Accessability' rights to run correctly. There could also be built-in software that 'hijacks' the settings. Most operating systems tend to come with 'ink' software pre-installed (that lets people digitally sign documents) which could be causing a conflict.