Automakers are quietly preparing for a painful reset as the industry’s electric and software bets collide with higher costs, ...