Questions & Answers about Una avería en la red eléctrica causa un apagón.
Avería means a fault, breakdown, or malfunction. In this sentence, it refers to a problem in the electrical system.
It is commonly used for machines, vehicles, appliances, and technical systems:
En is used because the fault happens in or within the electrical grid.
This sounds natural when talking about where the problem is located.
You may sometimes also hear avería de la red eléctrica, but that usually sounds more like a failure of the electrical grid as a whole. In this sentence, en is the most straightforward and natural choice.