It sounds like the doc should have weaned you from what you were taking rather than have you stop cold turkey!
Answering your question; yes, withdrawals and simple anxiety can do what you have experienced. Hope this new medicine helps you and quickly! Anxiety and panic attacks are NO FUN!
Good luck!
__________________
Psalm 119:105 Thy word is a lamp unto my feet, and a light unto my path.