Whenever I have a lucid dream in which I successfully start levitating, I almost immediately get a lower leg cramp in my one of my real world legs which forces me awake. Does anyone have a valid explanation for this?

I suppose this could be used as a test for whether I am lucid dreaming, but I would rather it wasn't.