I think his death is the price for learning the truth (like maybe the evil spirit decided to show him the truth, but only for his soul in return)