@nprofile1q... That sucks. From Brave:
These cramps frequently occur at night due to plantar flexion (toes pointed downward) during sleep, which shortens the muscle and activates latent trigger points in the gastrocnemius.
I started drinking more water in the evening...seems to help me.