It would have to go before a court. I think it wouldn't be too hard to convince a jury (or judge) that a head-in-a-basket AI art + description is expression (first amendment) and not a threat
Edit: your first link is a genuine threat. the second one is a picture of someone holding a photo-realistic, mangled head. The head-in-a-basket is neither