The accident was Spain's second high-speed train collision this year and raised fresh questions about the country's rail safety, after a crash in the southern region of Andalusia in January killed 46 people.