It shouldn’t cause an instant loss. Instead it should introduce a new civ, with advanced tech and Terminator like killing machines and have to defeat you like any other civ. While it is active, no victory condition can be met until the AI civ is eradicated, so you can’t avoid the machines by continuing to develop…