Apple pencil alarm

I have a zagg stylus pro 2, on a M5 ipad pro, The first day I used the stylus and shapr it worked great, no alarms now every day since I get the apple pencil not connected the moment it comes off the screen by more than an inch. Its quite annoying. and doesn’t always take the next touch with the tip. Do I need to get an actual apple pencil for this? Attached is a screen capture.

any help is apreciated.

Hello, on iPad, we recommend Apple Pencil for the best experience. Some third-party styluses may work, but we can’t guarantee full feature compatibility due to differences in precision and pressure sensitivity.

As an alternative, you can use a keyboard with a mouse or trackpad on iPad.

Third‑party styluses often lack full Apple Pencil integration, so for consistent performance on iPad Pro, the actual Apple Pencil is recommended. Official Site