Thank you for the feedback!
The lightning isn't actually random, it only appears when you die or you went to high
Oh! So it's not lightning that kills me. It's my death that produces lightning. Clever.