Spanish swimmer given second chance after heartbreaking DQ