This is a tough question, however, just know that if you take off for while and do not visit with your daughter, this can negatively affect visitation with your daughter. Keep communication with mother to a minimum and refrain from negative comments against mother verbally or in writing. You should consider having custodial exchanges at a local police station or somewhere public where witnesses will be present in case she says you started something with her.
Disclaimer: This answer does not constitute legal advice, and should not be relied upon as such. Each situation is fact specific and therefore any legal evaluation may vary. Please note it is impossible to evaluate a legal problem without a comprehensive consultation and review of all the relevant facts and documents at issue. This answer does not create an attorney-client relationship.
You need to file for dissolution (divorce) get a custody plan and order in place, and spend appropriate time with your daughter, but spend NO more time around your wife. If she's willing to put you in jail, then you need to be AWAY from her.
Sign up to receive a 3-part series of useful information and advice about child custody law.