There are people who have repetitive nightmares. And what happens is their brain is trying to process the stress and help their brain actually deal with what happens if this stress happens again, so their brain's preparing them to deal with it in case the stress happens again, but it's so scary that they awaken from it.