This happens to me. Started in my twenties and I was convinced I had a brain tumor. I'll be almost entirely asleep, then I get jerked by a weird electric buzz sound, like the buzz of a transformer, and it feels like my body from the shoulders up is zapped with electricity, then I get terribly anxious. And then I don't get to sleep that night more often than not because of the anxiety.