You can certainly leave the marital home and stay in the immediate area. Or you could file for divorce and immediately request exclusive use and possession of the home. Such a request would be based on a reasonable fear for your safety. If the court found your testimony compelling, your wife would quite likely be ordered out of the home.
Additionally, considering her problems, the same argument would most likely assist you in obtaining custody of the child.
So you know, if you have follow-up questions, you don't necessarily need to start a new question thread. Rather, you can follow-up on this string. If I provide multiple answers that you find satisfactory, you may click on "accept" again or provide a bonus. That is certainly acceptable to me and quite likely easier for you.
I hope you found my answer helpful. If so, please click on the green ACCEPT for my answer. This is necessary for me to be paid for my work and so that I can get credit for assisting you. Your question will not close, and you will still have the opportunity to follow-up if needed. Leaving a bonus and positive feedback is not required, but doing so is certainly appreciated! Thank you and good luck!
Also, several customers have asked how they may direct a question to me in particular. If you specifically want me to assist you in your legal matter, just put "FOR JOSEPH" in the subject line and I will gladly pick up the question as soon as I am on-line.