I don't know.
This gets into a whole mess of considerations, and there's not a lot of agreement.
There's little doubt that there isn't a gross surplus of solar energy incident on Earth's surface. But that surplus is, by orders of magnitude, fairly thin relative to present human energy demands. By the time numerous factors are applied, you end up with infrastructure requirements which are truly prodigious.
I'm increasingly coming to the conclusion that the real lesson of Limits to Growth has largely been missed -- not what limits are, but that they exist, and even highly generous assumptions of abundance (or effluent absorption capabilities) are rapidly overwhelmed with even modest rates of growth. That is, the lesson is humans must embrace limits. There's considerable more math on how far in advance clear warning signs do or don't exist, though fundamentally the principles are simple.
This turns the typical statement of sustainability on its head. The question isn't "how do we provide energy, food, and other resources for the people we see coming", but "how many people can be supported, at what level of affluence, for what duration?" It's not energy supplies that are insufficient, it's humans which are overabundant.
Answers to "how many" vary, though I've seen published values ranging from 50 million to 50 billion -- three orders of magnitude. Someone's off by a lot.
Going by history, the range of 50 million - 2 billion corresponds to human population from early prehistory to about 1920. At the dawn of the Industrial Revolution, the value stood at about 500 million.
Levels at or above present populations would require a large number of complex problems be solved for a very long time.
The answer to your question may well be not that you're wrong, but that you're asking the wrong questions.
Put another way: there's nothing inherent to the Universe (or even this small speck of it) which gives humans any right to existence or level of affluence. Predicating reality on what we'd prefer is the definition of wishful thinking.