The CEO survived just three years in the job as the automaker changed its focus to dealing with U.S. tariffs, cooling EV sales and keeping up in software technology.