With regard to the specific hospital raid at issue originally, you have presented no evidence that any of this happened. None of the articles you linked to said that anything like this happened as a result of the raid. It was already happening because of the overall lack of electricity.
That Gaza lacks power is Hamas’s own fault. Hamas has chosen to build rockets and tunnels rather than water, energy, or food systems. Hamas has destroyed water systems to make rockets.