The four-year bull market in stocks is riding high because of the AI boom. But it’s also increasing the cost of money.