A secure QPLANE operation method

When using Qplane aircraft, if the altitude is too low and switches to forward flight mode during takeoff and landing (due to operational errors or insufficient altitude), it can cause the aircraft to collide with obstacles or even people in the forward direction. Do you have a form of security protection. Does S prevent the aircraft from switching from Q mode to different aircraft modes when the distance is less than 30 meters? Or can we write a script?