You are most likely severely magnesium depleted, a global problem with little recognition and rapidly growing adverse effects on the health of the general populace. See: https://openheart.bmj.com/content/openhrt/5/1/e000668.full.pdf
The statins and antibiotics have one thing very much in common, that being they are potent chelators of magnesium. If you had plenty of magnesium, you likely wouldn't have ever experienced the adverse effects. Note that circumstances in which you were exercising/perspiring--and hence losing salt--very likely exacerbated the situation.