I suggest to the craftsmen to make a script to eliminate the accidental triggering of panic. If you look more broadly - a reassembly of the whole psionics.
At Morale = 0, the panic should be 100%.
Next we need 2 options to "units.rul" - "ChancePanic" and "ChanceBerserk" which by default = 50%. If the total value of these options is less than 100%, then the missing ones become a chance to ignore panic or berserk.
In addition, you need the "IgnoreMindControl" option for mechanical creatures. There were cases when the aliens took control of tanks, which should not be under any circumstances. Exactly, as well as the opportunity to take control of the alien's mechanical terrorists - the same complete nonsense.