In the nearly three years since Musk acquired Twitter, the social-media platform has endured mass firings; an advertiser exodus; and, of late, antisemitic posts by its AI chatbot, Grok.