Yup. There are three people in your marriage now. She is in an EA.
Since ultimately she will have to break with him or you have lost her, how can that happen? How can she cut the partner out of her life.
This situation was a dangerous one of course.