Taking Xanax for three weeks or longer may lead to withdrawal symptoms when you stop taking it. Withdrawal may cause mood changes, nightmares, muscle spasms, increased anxiety, and seizures.