https://elpais.com/espana/2026-10-28/por-que-han-chocado-dos...
An automated system[*] had failed earlier this morning, so controllers were working manually.
[*] https://en.wikipedia.org/wiki/Linienzugbeeinflussung ("LZB")
[added translation]: "The LZB safety system, which controls Spain's high-speed rail network, malfunctioned on Wednesday morning, causing about eight trains to come to a halt in the area. The control center then switched to manual control and ordered all trains to resume operation. However, the Iryo, for reasons that remain unclear, was unable to start and remained stationary. And that is where human error came into play, according to these initial hypotheses."
The primary reason is computer failure followed by the decision to run the system manually.