Yes, Could also be a matter of not getting adaqate electrolytes, which is potassium, magnesium, and sodium, chloride, calcium, maybe a few others.
Could be lithium at play. I hope they sort this out and get you well again. Sorry this happened and you are in hospital.

I hope you start feeling better soon.