One force is propping up the economy. Fears are growing it won’t last.

Artificial intelligence may be Silicon Valley’s latest speculative bubble, but this one comes with major risks for the rest of the economy.