As spending on artificial intelligence surges, the history of massive technology booms suggests it’s often a rocky path for ...