GM’s announcement comes after Ford said it would record similar writedowns following a broad resetting for the U.S. EV market.