Discontinuing the medications you've been taking for so long is quite difficult for almost all people in similar situations. The symptoms you're experiencing are likely a combination of withdrawal from the drugs, especially the Xanax and Ambien, and possibly a return of the symptoms that originally prompted you to take the medications. If you took high doses of these drugs, it's more difficult it is to discontinue them, and withdrawal symptoms last longer.
It was certainly wise to taper off the drugs over a lengthy period. If you only recently discontinued taking any of the Xanax and Ambien, I think your symptoms are still being caused by withdrawal. If so, they should get better with time.
Some people think that taking these drugs over a long period permanently changes our brains so that they can never again respond normally to stressors when the drugs are discontinued. I'm not sure I agree with that, and it may vary by individual. When I once stopped them, I was relatively fine for a while after withdrawal, but my original symptoms eventually recurred. In my experience, I don't believe those symptoms were caused by my prior treatment with the drugs but were a recurrence of my original symptoms I always had.
Are you being monitored by a psychiatrist during this period? That would be important, because the symptoms you're having are relatively severe. A psychiatrist might prescribe a less risky drug for a brief period to help with these symptoms.