A basket of outstanding US corporate loans suffered its steepest monthly decline in more than three years as fears of artificial-intelligence disruption deepened, sparking a selloff.