My cousin went through a similar thing after a bad motorcycle accident. In his case his dreams were terrible creatures torturing him.
I can imagine this sort of experience is where hell and heaven spawned from.
He’s now absolutely fine and doesn’t ride motorbikes and is still a staunch atheist.