Leg cramp/spasms?

Dj

I just woke up out of a dead sleep with the absolute worst muscle spasm in my calf. I started screaming for hubby and I couldn’t stop crying. He ran and got me an ice pack and help me get up out of bed. I’ve had foot cramps before but never anything like this.

Anyone else dealt with muscle spasms in their last few weeks? What, if anything, can I do to prevent them?