If the handwriting is deleted when writing, please check if Eraser Gesture in Pen Mode is disabled.
If the option is enabled, the eraser gesture will work and handwritten objects will be deleted if you draw a zigzag.
You can see the option from the viewer options.
Press icon at the top right side of the document viewer and disable the Eraser Gesture in Pen Mode option on the Lab Feature section.
Related Article