It’s not difficult. That’s a tiny amount of land area.
Let’s actually run the numbers. Total agricultural land use is about 50M square kilometers. On the other hand, total world energy use (including oil, etc.) is about 580M TJ/yr, or 1.8E13 W on average.
A square meter of solar panel produces around 25 W on average per square meter (this is after accounting for inefficiency, seasonal variation, and the day/night cycle). That is 7.2E11 m^2, or 720,000 km^2.
So while we need 50M km^2 for food, we need <1M km^2 for solar energy (and that accounts for everything!).
If we switch to indoor farming, we’ll massively increase our energy needs, but massively decrease the required land area. But even if the energy use doubles–to 1.5M km^2–that’s still tiny compared to the savings from needing 50M km^2 of agricultural land to 5M or less.
And that is, IMO, the answer to the op. Our sustainable future is almost entirely solar powered, but it doesn’t require paving over the landscape with panels; instead it will allow a massive reduction in human land use by enabling more efficient agricultural practices. Even if the population hit 10B and everyone was brought up to a Western standard of living, there would still be plenty of land.
To get there, we have to stop burning coal, stop burning oil, and switch our industries to be electric, as well as being made compatible with the intermittency of renewable power. That’s all doable, but people are resistant to change, even if it will benefit them in the long run.