its literally random. Sometimes it standing around by the ship, a lot of the time its during warping from location (a) to the space gate or warping through the space gate when you warp to 2 locations. But in general, its literally random events.
Well this is hard to fix as it might be a culprit of the game since it's still in early access with overwhelming amount of bugs, if it fired at a specific scene or an event then would've been easy fix, regardless I'll check it out and make sure trainer's code is intact but I need your save game.