The day-trading crowd had been riding the AI boom that sent major indexes to record highs amid fears of a speculative bubble.