The boom in artificial intelligence was the biggest driver of gains in the stock market. That could pose a risk in 2026.