The president’s posts about artificial intelligence on the social media platform he founded were met with an unusual volume of criticism.