I think it is first and foremost a demand and supply problem, not a grid problem. Although I think microgrids can help. But the real solution is on the moon.
How Power Outages in India May One Day Be Avoided
Some 600 million people in India have been left without power after parts of the country's massive electricity grid collapsed Tuesday. ..... the simple backup diesel generators that are keeping many essential services in India going right now ...... distributed solar can be cheaper than running diesel generators alone for backup power. "Solar power is very attractive when compared to diesel generators in the daytime" ...... While news reports suggested that there are 600 million people who lost power with this week's outages, that's almost certainly an overestimate—if only because hundreds of millions of people in India didn't have grid power to start with.