The departure comes amid a series of sexual harassment allegations as well as being hit by a lawsuit from Waymo  Alphabet’s self-driving car unit  that threatens to potentially kneecap its autonomous driving efforts.