I find it slightly heartening to consider that all biological life is already a long-running Gray Goo apocalypse, and one of the inheritors of that legacy are towering trillion-unit megastructures with eldritch hiveminds were call "people."
And a full environmental collapse is not even strictly necessary to end civilization. If the climate perturbation is large enough it will cause a mass migration and an economic disaster, either of which is enough to cause a war.
Can humanity peacefully deal with things like half of China becoming uninhabitable by humans? Dunno but if I had to pit humanity against this or the mirror bacteria I'd choose the latter.