This is quite the post! I am also an anxiety sufferer and when I was younger I had horrible panic attacks. Marijuana always caused anxiety in me. That's the main reason I could never really smoke it recreationally. When I didn't have anxiety with it it was great but those times were very few. That said the absolute number ONE side effect of THC is elevated heart rate and secondly extreme anxiety. It doesn't happen to everyone but it does happen and when it does it is very intense. These feelings, once awakened in you, can continue as anxiety is self-sustaining. You worry about it, so it happens and once the cycle is established the fears get worse and worse.
My advice --
Don't smoke any more marijuana. I have nothing against it personally but if you are prone to panic attacks marijuana will do one of two things. Either it will calm you down or you'll be in the ER with the worse panic attack of your life!!
Have your potassium level checked again. Both low and high potassium levels effect heart rate and rhythm.
Lastly, seek medical and/or behavioral intervention for your feelings. Anxiety is very difficult to overcome without aid and it sounds to me as if all your symptoms are actually just symptoms of an anxiety disorder. Anxiety has over 100 symptoms, most of which people are unaware. I urge you to research it and seek professional advice.