The owner in a video linked the fault to wires that pressed against the frame and pushed the sensor away. After changing how it sat with a washer, it worked again. That's one specific result, not a ready-made modification for every DS525X.
Checks
Inspect the mounting, the switching position and the wire slack over the full stand travel. The sensor mustn't hang on the harness or shift because of how it bends. Damaged contacts and corrosion need a separate repair.
A washer changes the distance and the bolt's thread engagement, so whether it's suitable is confirmed by the geometry of the assembly. Overtightening a misaligned sensor can damage its body.
The result
Check the starting and stopping logic in different positions according to the manual, without bypassing the safety circuit. If the engine stalls over a bump, note the conditions and go to a workshop. A jumper in place of the sensor isn't a standard solution.
After fitting crash bars or removing the sprocket cover, inspect the wiring route again: it's easy to pinch with a neighbouring fastener.