Instead of figuring that out, they'll just watch their civilization crumble.
Btw: they're already investing heavily in artificial wombs and affiliated technologies.