According to naturopathic doctors, proton pump inhibitors are one of the most dangerous drugs ever created. Besides the damage that can cause in the kidneys and other organs, they lower the ability of the digestive system to absorb nutrients. In your case, the cramps Im POSITIVE is lack of micronutrients.
People will advise you to take this much taurine, this mach magnesium, this much potassium, but that is wrong. Yes, you might be low in those, but in reality, you're low on ALL essential nutrients. All minerals, all vitamins, all amino acids, all fatty acids. You might not get another symptom, but is a matter of time until something breaks. Completely revise your diet and make sure on top of a healthy diet you supplement with the 90 essential nutrients. Diet IS NOT enough. Again, diet IS NOT enough. There is no possible way to intake the necessary amount of each nutrient just from diet alone. Simply because like never before, nutritional value of food is very low. And even if it was still normal, humans need way more than what just a few veggies alone can provide.