REM (rapid eye movement) sleep is the stage when most vivid dreaming happens, and it is thought to help the brain process emotional memories and regulate stress responses. Chronic stress, irregular schedules, and screen use can shorten or fragment REM sleep, which may weaken that emotional processing.
Researchers also study the reverse effect: poor REM sleep can heighten reactivity to stressful events, and disrupted REM is common in anxiety and post-traumatic stress. Because the link runs in both directions, stress and REM loss can feed into each other.