Nightmares

the prefontal cortex (PFC) is blocked for some reason when in Rapid Eye Movement sleep (Rapid Eye Movement).

the prefrontal cortex is responsible for handling and processing trauma so it makes sense that people process their trauma through nightmares.

people who dont get a lot of REM sleep tend to process some of their nightmare during the day because the prefrontal cortex was shut off.