This is a very dangerous narrative, for some reason popular nowadays — the scarcity mindset, the story of “limited resources”. If you go back 5000 years ago you’ll see there’s only so many people the planet can feed. The actual fact is that people _create_ resources when they cooperate (this is why now our planet can afford so many people that ancient would never imagine possible). It’s not about the technology but a…
Farming produces more food than needed, so you can feed others. Technology just makes farming more efficient, so a smaller percent of the population needs to farm. As long as there's still potential for more farming, population growth means more farmers producing food. If you exhaust the planet's resources for farming, or climate change reduces it, more people won't mean more resources anymore.
What makes you think it’s impossible to get food from other sources that we didn’t invent yet and would probably not even call “farming”?