Yeah moving is difficult but I was told bananas help prevent leg cramps and Gatorade ..
Im going to eat a banana right now lol and it does seem to help when i put my legs up just hard not to roll onto my back
Maybe try elevating your legs ?
I have tried stretching to lol sometimes it feels like my foot is stuck forever! I have to roll over every few hours at night and that is getting to be hard!
When u feel it coming flex your muscles and hold it unil the pain goes away . And eat more bananas !!
I have the same thing with my leg its so annoying and like reckoning for me. What I do is stretch the specific leg (the calf,etc) & take Tylenol , it will make you feel at least %95 better