The AI chatbot is facing criticism and threats of government action around the world after it created sexualised images on X.