The real reason we are having population shrinkage is because evolution did a crappy job. It didn’t tune us to want to have kids, it tuned us to want to have sex, and it linked to sex to reproduction.
As we got smarter, and eventually develop contraception, we are essentially reward hacking evolution’s crude hack.
What’s going to happen over the next few decades is that a few variants here and there are going to spread throughout the population that actually lead to more kids, not just through desire for sex. It will be a population crash, followed by a recovery.