In which case, there are several solutions, including: (1) handle whatever it is that is causing the feelings, (2) end the marriage, or (for the case where staying together is good for the kids) (3) give your blessings for the spouse to take care of that elsewhere
We’re in agreement then—— both spouses, both ways.