Hello AmavQR,
Thanks for reaching Microsoft Community. We're sorry to learn about this issue on your pen. We'll do our best to help.
Does the issue only happen with the pen? Have you tried your fingertip and check if issue also occurs? You might also want to check if your pen is doing the same thing on other Surface device or not.
In the meantime, follow the methods on Troubleshoot your Surface Pen (microsoft.com) and check if problem persists or not. Run the Surface Diagnostic Toolkit and check for Windows Update on your device.
Hope to hear from you.
Regards,
StevenK