Ambien CR is a longer lasting drug. But I'd get off of it with what you're experiencing. Your psych doctor knows best, work with him on this. I personally have refused Ambien due to all the side effects. Take care..
This is just a thought but i have known, both with myself and other people, that when we have taken a drug and then we have changed the company that makes the drug, even though it is in theory the same drug taken it can cause new side effects. So, this drug that you had this side effect too may of been from a different company than the one you were use to.
Even though the dose of the med etc are the same, each company can use different bulking agents to fill out the tablet and it is these slight changes that may cause the problem. In your case it may of been that if there was a slight difference in the bulking agent your liver found it alot harder to metabolise and pass through your system.
Just one theory of what could of happened.