Criminal Law Questions? Ask a Criminal Lawyer.
The best thing you can do is provide evidence to the court that she is bi-polar, which will totally dis-credit her testimony. Also, it's important that you tell the court that you've moved out for your own safety.
You could also file a request for a restraining order against her for your protection.
Because this is not true, you want to make sure the court is aware of her condition and that you're the victim in this - not her. You don't want to have a charge of domestic violence on your record. It causes you alot of trouble with job applications to buying a firearm.
My suggestion is that you hire an attorney to represent you and have him/her issue a subpoena duces tecum (a specific form of a subpoena issued by a court ordering the parties named to appear and produce tangible evidence (documents or otherwise) for use at a hearing or trial - it includes clauses to bring in hand books, papers, etc. for the court) to your girlfriends doctors to gather evidence to prove her condition.