Don't care too much about these things. Drinking milk and other foods that can soothe the nerves before going to bed, or doing massage to relax the tension and psychology of the day, walking is not worth it.
In addition, the posture when sleeping is very important. Don't fall asleep and don't cover your mouth and nose with a quilt. This will not oppress your heart and lungs and reduce the occurrence of nightmares. If it happens again, turn on the light, get up, drink some water, sit down and go back to sleep.