Benzos like Xanax have also been linked to miscarriage, although only when taken in the first trimester. If you get used to
Xanax, though, you cannot stop it abruptly, as THAT
withdrawal CAN be dangerous—causing seizures and worse.
You are now in a good position to start buprenorphine, after going through several days of withdrawal; it would relieve your withdrawal within an hour, and you would typically stay on it until after delivery—and then decide whether to stop it or continue it.