Just a feeling or rather educated guess is:

That general AI going rogue if it gets conscious is small, more probable is narrow AI that has mistake in setting goals, given too much power by either military or corporations.

Global Warming is highly probable but we still have chance if we find energy to cooperate around mutual goal.
Key points:

- Siberian permafrost and releasing huge amount of CH4 topping up all efforts.

- Amazon forest now release more CO2 than sequester (this week news)

- Species are being extinct on a rapid rate

- Wildfires/droughts continue to increase devastation

- Floods and heatwaves are stronger (losing ice caps will increase this to Equatorial heats once planet albedo of caps is lost )

Now, critical is next 10 years That does not mean that humanity will be wipe out in 10 years, but will set course for final destination. As no technology or amount of money will help us past that point, weather pastern and issues will be out of our hands. In bad scenario 99% reduction of population till 2100. Again guess. Underground pocket of sparse scientific communities could survive bit longer past this point, using geothermal energy and nuclear power.

Nuclear war is quite probable, I think critical is next 20 years:
https://www.thedrive.com/the-war-zone/41421/pentagon-warns-o...
If all weapons are fired, simply put, some people may survive, but they would wish they are dead. Let me put this way, we all have romantic dreams of surviving, go to Hiroshima, ground zero, then straight to museum, and then imagine something 2000 times more powerful multiplied by 16000. And of course everyone forgets Nuclear power plants, ~450 with similar yield. If you do not have Cheyenne Mountain complex at your disposal, your life expectancy is between 0 and 3 years. (acid rains, nuclear winter, no food, no medications, no drinking water, no animals ...). Even if someone survives it would be back to stone age - killing each other for basic necessities (even human meat), as there is nothing else to eat.

China vs US, US vs Russia, India vs Pakistan, rogues nation getting a weapon on some black market ...

Anyhow, if our civilization was cooperative society with higher goals, it would be fine, but from my experience, and from what I saw during my life, all governments are nothing but aristocratic mafia organisation sponsored by big business having one goal to increase wealth of their share holders justifying all means by what ever ends they have.

But regardless what I wrote or how many arguments I give as Friedrich Nietzsche "Hope in reality is the worst of all evils because it prolongs the torments of man." many especially those in power to do something, will have tendency not to believe in the final outcome until it happens, so instead of taking actions they will continue business as usual.

When I was young I lived in different country there one post WW2 leader used to say "Work and enjoy like we will live in peace 100 of years, and at the same time prepare like there will be a war tomorrow", personally I think it is a good policy for Global Warming or WW3, we should imagine the worst and then work as hard as possible so it never happens, employing all possible strategies at our disposal to save all life on planet, (DNA bank, 5d crystals, space travel, multi-planet, multi-suns ... whatever).

Similar like in IT we protect systems, for me who ever uses "doom-erisam" and similar shaming terms is nothing better than those person. Ostrich burying head in the sand like will not save you from the lion. In IT good network security guys imagine all possible scenarios, and they are not afraid that by the so called "new-age quantum vibration field" if they imagine bad scenarios they will attract it just by the power of thought. Admins/devs frequently must imagine and test all bad scenarios, even play roles of bad actors, so they can employ protective techniques.

In the similar way we should explore bad scenarios and see is it possible to do anything, but unfortunately, we who talk about it and comment a lot, our circle of concern is significantly bigger then our influence, and those who have huge circle of influence (money) the do not give two dimes about our concerns, and that is the reason my friend I am not optimist about our future in next 10 years...