Pickle juice. I know it sounds weird but it works.
I get them as well and my ob said to drink poweraid cause of electrodes
More water! And bananas help too. When you get cramps, make your foot flat. Like, press it flat against the wall, floor, couch, or even make it flat in the air. It'll take the cramp away.