This is an ignorant opinion. For multiple reasons.
Derailing under these circumstances is a track issue, which means ADIF, the state's infrastructure maintainer, is under suspicion. Not operators, the state's infrastructure maintainer.
Liberalization of the railway sector is an EU-wide mandate. It's not some whimsical slip of a single country's leadership.
Years ago there was an AVE derailment in Santiago de Compostela. No one banned RENFE from the lines.