I think I remember reading somewhere before that the inverters require a grid supply to sync to, but they've been known to mis-read that sync and start doing their own thing...... which is less than ideal when you're feeding into the national grid


A quote from the article I linked to:
"In just five seconds, Spain lost approximately 15 GW of capacity, equivalent to 60% of its national electricity demand. The remaining generation was insufficient to meet demand, thus triggering a cascading failure across the entire grid."
........There ain't enough batteries to contain that magnitude of loss.