The country’s sharp shift to EVs and stronger local competition have deflated a key profit engine for the U.S. automaker.