A lot of the motional subsystems in your brain are turned off when you dream so you don’t react to things as you normally would. Nightmares, etc happen when those subsystems stay on for some reason (PTSD, for example). See Chap 10 (IIRC) https://amzn.to/3DzSLva