Pelvic Spasms

Patient: Massive spasm in pelvic floor and on both sides. This occurs when lying down. These spasms are not painful but prevent me from falling asleep. What muscles could cause this and what could be the root cause? These spasms involve 8 contractions in rapid succession, stop and then reappear 20 seconds later.Thanks

Doctor: