Hire a lawyer ti protect your legal rights. If she wants to buy you our (if it comes to that) my suggestion is to let that be a court decision. That buys you a lot of time. If you just move out, you automatically forfit and give her the leverage.
Don't move out!!! She's the one having the affair not you!!