With this being a felony matter and your wife having these serious psychological issues, it is absolutely imperative that she gets an attorney working for her ASAP. Find a few experienced DUI attorneys in your area using this website, then make some calls with them to discuss her situation and whether you can afford representation for her. If not, then yes, she should absolutely seek a court appointed public defender through the court system.
I would assume with the felony charge that she has an attorney so you need to address these concerns with them as they are in the best position to answer your questions. Good luck.
This is not intended as legal advice. No attorney / client relationship exists because of this response.
It really depends on what you and she are prepared to negotiate for. Are you open to maybe 3 months away at a secure location where she can get some of the help she needs for her issues? Can you pay some of these services? She should have the right to a probation hearing and maybe these issues can be handled there. Really depends on the judge and the prosecutor. Best of luck.
Since she has 40 days in jail you should be able to get credit off any sentence for the time she has served. You should first see if she needs any additional inpatient treatment and get her stabilized. The Court will look for stability and will reward her with a lower sentence for taking control of her condition and treating it. House arrest is a very good possibility that I always try to get as it is better for her treatment and the prisons don't like dealing with mental illness. If this is structured just right she can get the treatment and care she needs and the smallest sentence possible.
The information provided is in response to a question. The answer provided does not create nor is it intended to create an attorney-client relationship. The answer is also provided given the facts presented by the questioner and as such should not be relied upon without first meeting with an attorney and providing additional information. You are advised to seek legal counsel prior to initiating any legal action.