This may be due to the “Scribble” in iOS.
Please try turning off the Scribble and see if the problem improves.
▼How to turn off the scribble
Launch the “Settings” app on your iPad < Select “Apple Pencil” < Turn off the scribble
Please refer to the video below for detailed instructions on how to fix the issue.