I once hit my head against the wall 'hard' when I was asleep after having smoked. It scared the shit out of me, I have experienced it a couple of times that I twitch at night. I'd say it happens to me no more than on time on 50 or something like that, I've got this hypothesis that it happens when you're worrying about things, but that's just an idee.