Why the US midterms sparked an AI stock selloff