Fluids and potassium...bananas!!!
Try drinking gatorade or powerade. Stopped them for me
I found a packet of ready salted crisps an hour before bed worked wonders. Of course I had to follow the crisps up with Rennie for the indigestion that inevitably followed but the cramps stopped! :-)