Companies are burning through exorbitant sums of money to keep pace in the AI arms race. Debt is climbing.