A Tesla engineer quit after eight years, saying Elon Musk has damaged the company's mission.