When I was given anti anxiety meds for withdrawal (benzos) it was only for a few days, just for the acute withdrawal and not long enough to become addicted to them.
If your w/d is bad, get medical help. Alcohol w/d can be dangerous. Have someone there with you.