The example must violate some assumptions behind the theory, but I’m not sure what.
Possibly because there is a harder limit on humans than on AI? Humans don’t replicate very well.
On a second thought, I don’t think comparative holds if demand is exhausted. Comparative Advantage(at least the Ricardo version i know of) only focuses on the maximum amount of goods, not if they’re actually needed. If there was more demand for paperclips/staples than there is Production by AI(s), Humans would focus on staples and AI (more) on paperclips.