Elon Musk’s social media company, formerly Twitter, is under fire over the generating of illegal images by its AI chatbot Grok.