It seems multiple people have had this issue. Whats probably happening is that your dead already, but it missed it due to some race condition.
Alright, I solved it. I did a stupid jam code thing, if health == 0 instead of if health <= 0.
if health == 0
if health <= 0