Maybe not many, but some rather large. Say, Congo, or Sudan. But more often that would be not outright warlords but rather corrupt peacetime officials, who would try to extract or extort some additional personal / clan gain from something that could be a commonly accessible good.
Those are exceptions and can’t be used to characterise an entire continent. I have lived in areas of the continent with poor security and jihadist violence yet year in year out, fibre access kept expanding and getting cheaper. The corruption don’t stop rollouts, just make them more expensive and are not particularly to African countries.
With power issues in Nigeria (basically no power from my perspective), I have been building my home solar system. Currently at 9kw solar panels, 10kva inverter with 30kwh Chinese LFP. Spent about $7,000 so far. Looking to eventually get to 60kwh and at least 20kw in panels because of air conditioning needs.
Waiting for government, my kids currently in primary school would probably have graduated from college before they fix the power situation (they are currently fixated on building roads to nowhere).