Handle tarfile errors when reading artifacts.