Seemingly Random Sculpting Malfunctions
Make sure windows ink is off.
Make sure double click detection is off on your tablet driver software (there is such option on wacom but none in xp pen, don't know about your brand)

Switch blender to win tab:

Let me know how it went.