A small number of large plants are much easier to target during war than distributed wind, solar, or batteries. It’s not that batteries are immune to grenades. It’s that you’d need to put grenades in orders of magnitude more places to get to all the batteries as compared to large nuclear plants.
Batteries do pose a fire risk, but so do petrol cars. We pump flammable gas into our homes in large parts of the west and have designed ways of keeping ourselves safe. I see no reason why batteries won’t follow the same path.