https://youtu.be/wOQHnUdrIpA?t=20s
Jets need to use target Z-axis as reference height when strafing, to avoid dropping too low and crashing.
Also the strafe approach should be much higher and steeper, at no point should the jet get below ~300m on a gun-run. This would also help in terrain-avoidance.