Antacids did this to me. I was convinced it was electrolytes, would take supps etc but I believe it came down to calcium absorption. Taking a break from the antacids immediately stopped the cramping.