I am yet another person who got panic attacks when I was currently drinking. Just like you, sometimes a day or 2 after sobering up wham it would hit me. I would drink more trying harder to keep them from happening but it only got worse.
I am 6 months clean and yeah I still have anxiety issues but nothing like I went through while drinking. I can't ever go back to that state again and I am sure you don't want to either. Know it may never be perfect but it does get better.