It seems to be a failing touch panel sending random input.
Open Device Manager > Expand Human Interface Devices
Find:
HID-compliant touch screen
Right-click → Disable
Now use the Surface with:
Mouse
Touchpad
Keyboard
If the problem stops immediately, the touchscreen hardware is defective.
To Find Serial No:
Shut down completely
Hold Volume Up
Press Power
Release Power when logo appears
It enters UEFI screen
Serial number is listed there.
Ref: How to use Surface UEFI