Fix err handling for Head call to retrieve size