Heat from a cosmic crash could have nurtured ancient organisms