Full blown panic attacks where you end up in the ER can take some time to recover from. Be gentle with yourself.
Banana's are a great source of potassium and do help with sleeping.
Another thing that may be impacting you is the hormone issue and that also mucks around with anxiety/heart issues.
Hope you can find something to bring you peace.