this has happened to me many times, even before I became pregnant. I found it happens more often if I am dehydrated. Drink lots of water and make sure to get all your nutrients.
If it does happen, as SOON as you wake up to the pain point your toes upwards and back and usually the pain will immediately stop. You just need to catch it in time.
I know it sucks really hurts
