These boom-and-bust tech cycles show that if AI investment wanes, the recovery will be quick