Hello SherryL
so sorry to hear of the panic attacks. I think you may be right about the root of the problem being related to the pain meds, but you may want to ask on our Medications forum
here is the link
http://neurotalk.psychcentral.com/forumdisplay.php?f=72
hope you will get some answers and be able to find a way to stop the attacks.