The population of the globe will not go down to zero. The last few people (and it won't even go that far) will not just decide to not have children because that is the trend and the norm.
Extrapolation is the tool of ignorance. You can extrapolate the population up towards Malthusian starvation, but you can also extrapolate the population down to zero. And believing either way is nuts.
The population will change. Over the very long term it will bounce around a lot, sometimes going down. Just because it is going down now, for the first time in our lives, doesn't mean "panic!". The only problems we will encounter are ponzi scheme collapses, but those are probably good to clear off the table now and then.
This is all I really meant by my last post about population. I wasn't defending the 1960s view. I was attacking the 2020s view.
I have more respect for Norman Borlaug than for Elon Musk.