I've had this before, a few times actually, when I was trying to WILD. I found that after the first time, if I got up and shook out my leg (which was what was twitching), the problem went away. You might want to try that before getting into bed.