I will add that the pie has never grown faster, and shows every indication of speeding up.
Major challenges like climate change (challenges to the economy, that is) look relatively minor when you compare it to past issues like WW1, WW2, possible nuclear destruction, widespread famines as recently as the 20th century; and when you also take into account that we have proven tech like nuclear and solar power and greenhouse and hydroponic farming that we can now use to tackle this issue.
Climate change is an ecological catastrophe, but we'll find a way to grow wealthier with or without a thriving ecosystem.