Definitely effects of Spiro, an increased ratio of potassium to sodium causing leg cramps and headaches.
Eat salty, as much as you want! Very important. Drink as much water as you need too, plain water.
Avoid high potassium stuff, like energy/sports drinks, mineral water, fruit juices, sodas, salt SUBSTITUTES. Moderate your intake of diuretics like caffeinated drinks, even tea. If you take supplements, be sure that they don't contain a lot of potassium.
Basically, you want to control your intake of potassium while taking in as much sodium (salt) and water as you crave. Your doctor should have warned you of this.