More swings in the bond market are rattling stock markets around the world and offsetting optimism that the artificial-intelligence industry can keep climbing. The S&P 500 slipped 0.3% Thursday and may be heading toward its seventh loss in eight days.…