There are a few ways to prevent the “extremely frightening” sleep phenomenon, though.