I haven't been sleeping well at all recently and this may be contributing to this but has anyone else had an issue of uncontrollable muscle spasms when laying very still to enter sp?

What happens is I am laying there and my leg will become very restless and suddenly shake and jerk violently then be calm again. It is relieving to the feeling building up but it messes it up. Its not a hallucination but it knocks me out of sp.. its only happened a few times but any one else have this?