1) go to court and plead not guilty
2)work with your wife to have the case dismissed, can be easily done.
3) divorce your wife after step 2. A woman who put you in such situation does NOT deserve your rest of life.
I had similar experience. My ex was habitually violent and one night, she hit me and I lost my cool. She called police and I was arrested. she later regret and my case was dismissed. But I divorce her soon after, even we had 2 kids together. A woman like that will probably send you into more serious trouble in the future.