The parallels between the AI narrative driving the current market and the dot-com bubble of a quarter century ago raise important concerns for investors.