It can be due to some electrolyte disturbances so first of all send your sample for these : serum kft and CBC
Are those proper cramps or just restlessness in legs while sleeping at night?? So also send Iron profile with
thyroid profile .
Next Steps
send kft , CBC , iron profile and
thyroid profile
Health Tips
consult me once you get these reports so that i can help you then with more accuracy .