And you can't use the csc conditions to check to see if your spouse's spouse isn't you? Your "first" wife will see that her spouse's spouse is indeed her and be okay, but your second (living) wife should suddenly discover that her spouse's spouse is some other (also living) dame, and kill herself in consternation? Or fire an event to force the bigamist to choose between them?
I only experienced this when my wife ended up also married to some dork in England, and he was getting her pregnant when I needed sons, darn it! The concerns are 1. processing power, and 2. seems a bit dramatic to kill off extra wives/husbands, when the "proper" response is to make them available to marry someone else.
Heck, I'd even give it a fair MTTH, and give it modifiers based off of intrigue-affecting traits, etc. But I'm crazy.
If it's possible at all (I'm *trying* to understand event_effects.txt, but not succeeding), I'd prolly write it as two sets of events, split for men and women. If a woman discovers her spouse's spouse isn't her, then he's a polygamist and it fires an event to force the man choose between wives, killing the other one(s). If a man discovers that his spouse's spouse isn't him, then she's a polyandrist and dies on the spot -- both men have to remarry. Not ideal, but doesn't destroy any bloodlines (although it could seriously upset a claim if that's what you were shooting for -- but at least it upsets it for both you and the other husband)
Edit: More research... Bigamy should be pretty easy to spot. If your spouse's spouse is pregnant and you are not, or if you are pregnant but your spouse's spouse is not... he's a bigamist and something needs to be done. How likely is it for two wives to continually lock pregnancies between event-condition checks? Won't catch it immediately, but should before serious damage is done... maybe one or two extra kids at most.
Biandry is harder. You could always check if your spouse's spouse has a trait you don't have, or vice versa, but that's a lot of events to test for a rarely occuring convergence of events and could be fooled by the even-more-rare occurrence of two men with all the same traits latching onto the same woman.
Bah, it's starting to sound like a lot of work for a minor bug. No wonder it's such a hush hush topic.