JOHANNESBURG, South Africa—Energy analysts say South Africa’s entire electricity grid is in danger of collapsing, as an energy crisis that began in 2008 plunges the continent’s most technologically developed nation into economic stagnation that is exacerbated by the COVID-19 pandemic. For the past two weeks, the country’s national power company, Eskom, has battled to turn…