Dishwasher stinks ONLY when windows open

Got a weird one...Bosch dishwasher that does a wonderful job of cleaning dishes. Everything comes out spotless every time. But a super weird phenomenon happens when we open a window on the house either during or after a load is done...the dishwasher will have a funky smell. Its not quite sewer smell, its more like funky water fishy smell and it coats the dishes. If you don't open a window during or after the cycle, no smell at all. It's the weirdest thing!

We've tried everything...ran the loop higher, dishwasher cleaners of all kinds, changed the studor vent, all sorts of stuff. Nothing helps. Any ideas?