The nightmare that jolts you awake at 3 a.m. isn’t a malfunction. It may be one of the oldest survival systems in the human ...