They did not die because of a nightmare. They died because of heart attack. Their soul left their body andΒ Β it wanders around then, they bumped into a bad spirit and they got really scared their body reacted to it and that was why they got a heart attack because some were not able to go back to their own body before it is too late and some were blessed to wake up and thought of it as a nightmare.