You need to replace fossil fuels with <whatever you think is the solution>. If you are convinced that solar + batteries can do it, then you need to rethink about orders of magnitudes.
Even nuclear cannot reasonably replace fossil fuels in the timeline that we need (i.e. before global instability that may well slow down many things). Solar is far behind.
Also never forget that we are living a mass extinction right now (it is happening, it is a measurable fact), and that is solely due to human activity in a world with abundant energy. If you find a solution to replace fossil fuels, you may save what remains to be saved on the climate front, but you will finish killing biodiversity. I don't know about you, but that is catastrophic to me.
Conclusion: we need to use much less energy, and therefore we need to be more minimalistic and stop growing just for the sake of growing. It's called "degrowth", but some people don't like that word because they think it means "go back to Middle Age". Instead it just means: engineers (like everybody else) need to work hard on clever solutions that rely less on energy. That's not Middle Age, it's just not the Silicon Valley world.
Your thinking is that we can't build solar panels and nuclear reactors fast enough, but we can build housing fast enough to move a significant fraction of the population to higher density areas where they don't have to drive as much? Because that's the low-hanging fruit on energy consumption, and it's a massive scale long-term construction project with significant political opposition.
And we should still do it, if only to get housing prices out of crazyland. But what makes you think we can do it any faster than we can build generation capacity?
I guess my point generally is that it is super hard to solve, because it touches everything. But it seems clear that we won't be able to compensate for fossil energy in the needed timeline. For nuclear plants, because it's super slow to build. For solar/wind, well we can't control them (if there is no sun, you get no photovoltaic energy) and we can't properly stock the energy they produce. And in any way, changing everything everywhere to work with electricity instead of fossil fuels is super hard, time consuming, and won't work for everything (oil is used for everything, not just cars).
So yeah, it's super challenging, it requires a lot of work and care everywhere. But the first step is to accept that we can't solve the problem by throwing more technology to it. We need to use technology wisely to get as much energy as we can, but in any case we have to drastically reduce our consumption, and therefore change society.