Aaaaah - LEMMYFI

You likely have a potassium deficit. I had cramps all the time until I took vitamin supplements that contain potassium. No more cramps.

Of course you can also just eat healthier and get potassium that way. Supplements aren’t necessarily the solution for you.

I have really severe Charlie horses and started potassium when I heard this, it helped slightly but magnesium is what did the trick for me.
The real answer is probably to talk to your GP about your issue.
I did and he was completely useless, he prescribed me baclofen which I take like tictacs and they do jack shit. He was out of ideas so I googled it and found out about magnesium. Got some β€œCalm” which is magnesium citrate and no more insane pain.