TIL dreams are thought to strip memories of emotion. According to the theory, this function fails in sufferers of PTSD. Recurring nightmares might therefore be a repeated attempt at performing this function.