It's not like we have exhausted all avenues and are stuck. Solar panels are getting cheaper and more efficient, storage is a problem, but it has not seen that much investment. More nimble forms of nuclear fission, like SMRs, is an active area of research. As mentioned above, we are making progress on fusion.
The idea that we are anywhere close to the diminishing returns on investment in these areas seems completely wrong to me.
EDIT: The dichotomy in this discussion is striking: we need to disregard almost all negative externalities on speculative investment in AI, but speculative investment in green energy is not worth it because it might not yield sufficient results.