The upheaval in the executive ranks emerged hours after the company's chief executive, Elon Musk, appeared live on YouTube