How well or how badly do other countries mitigate the effects of and recover from disruption caused by failures of traction, infrastucture etc?
In the Netherlands NS has most options with regards to spare rolling stock and staff, which they do use incidentally to replace defective trains or trains stranded at the wrong side of an incident.
However, the options for mitigating effects have been significantly reduced since ProRail developed a severe allergy for points in recent years. When a train would be stranded somewhere between Amsterdam and Utrecht for example, probably the whole service between Amsterdam and Eindhoven will be affected as there are limited options for reversing trains in Utrecht Central.
Even getting trains to and from the main yard in Utrecht is challenging in between regular service, from some platforms that would even involve passing through the station twice.
Diversions are relatively rare in case of unplanned disruptions. The high frequencies complicate diverting trains, although diverting only the passengers via an alternative route is easier because of the same reason. Most diverted are probably international trains.
The worst options are probably with the regional operators: Qbuzz has only ten trains, Connexxion has only seven. So failure of only one train might already be affecting passengers. That has in the past led to reduced services when too many trains had been involved in collisions for example.
Arriva probably has most options being the largest regional operator. But even they cannot use all their stock on all their lines.