Leg and feet cramping

Courtney • Wife 👰🏾🤵🏻 💙4/15/19 💙 8/11/20 due 9/4/22

So I drink 3 to 4 liters of water a day. I drink a whole one throughout the night and yet I still have leg, foot and sometimes hip cramps. Like a Charlie horse. Most of the time I can stop them from being a full blown pain but I feel them coming and I can stop it. Does anyone else have this or know what the heck is going on? It only happens at night or in the case of my hips, if I've been sitting or laying in a strange position.