> For few years, then every solar farm would go bankrupt all while food supplies gone.
If there is one thing effectively infinite, it is humanity's demand for energy, particularly with the growing demand from switching transportation and heating over to electricity.
And food supply wouldn't be gone, it would just migrate e.g. to Ukraine.
> humanity's demand for energy
Which was flat for the last decades in the Western world until the AI boom started. The demand was increasing, but efficiency gains were negating it. Generation was increasing ~2% per year.