Keep in mind that earth cannot get worse than the last time all CO2 was in the atmosphere. Trees are younger than sharks. There was plenty of life when all CO2 was free. Somewhere in that environment will be space for life like the last time. Sharks and trees and many other animals and plants made it though that environment. And somewhere in that environment, there will be some space for humans because we will be adaptable.
Instead, the biggest threat is AI. It's the new nuclear race. It will come as fast as human possible and it will have access to the most powerful weapons since any participant in that race will need that move to protect themselves.
Unlike CO2, AI will add something to the system that wasn't there before. Its power will be unmatched and unlike humans, it won't miss any lost life-form.