The Detroit-based automaker has faced billions of losses in its electric vehicle business over the last few years