Analysts have been warning that the tech companies benefiting from interest in artificial intelligence may have become too expensive.