The exit caps a summer of leadership churn at Elon Musk’s AI startup following a rapid $10 billion funding push.