Xanax withdrawal insomnia often lasts a few months. Before that time, insomnia may improve only to worsen again.