Automatron implements a pair of magic effects (DLC01Bot_Unstable_ExplodeEffect and DLC01Bot_Unstable_ExplodeHeadEffect) which apply an explosion/destruction effect to unstable robot parts that use it. This effect will also use an attached script to dismember and kill enemies that make contact with the explosion,
triggering a crash documented in an older issue. The dismember effect on the attached script (ExplodeOnContactScript) specifically targets the Torso body part that triggers the crash with bug swarms, and even if it did not, the Kill() command would cause a crash due to the same issue.
The following robot parts have an effect capable of triggering this crash:
- Basilisk Helm
- Carnage Helm
- Doom Helm
- Golem Helm
- Plush Head Helm
- Reaper Helm
- Space Monkey Helm
I have a fix available on Nexus that addresses the crash with what I believe is the minimum required changes. That fix is free to merge into the Unofficial Patch if you feel it is appropriate to do so.