Most businesses are overrunning their AI budgets as software teams rely more heavily on automated coding, according to McKinsey.