Experiencing realistic, intense, and disturbing dreams right before you wake up is a phenomenon known as “hypnopompic hallucinations.” About 8 percent of people 15 to 44 reported experiencing these, a Stanford University study found.