Porsche, GM, Ford and Stellantis have written off tens of billions of dollars and are revising their strategies