Hello and welcome,
I believe that the caffeine could increase your anxiety as well as causing a panic attack.
The effects of caffeine on panic attacks will vary from person to person, but nevertheless anxiety disorder specialists still recommend that people prone to panic disorders avoid caffeine.
Perhaps you could switch to decaf sodas and coffee. May be worth a try.
I wish you a warm welcome to a great forum.
Kindly,
Kitt