It can happen - and companies can recover from that. But that's wasting a whole lot of money and a lot of executives will sunk cost fallacy themselves into continuing when that may be the much saner decision.
I didn't mean to imply that all companies that went hard into AI will die - just that a lot of companies that follow the trend may not realize the true maintenance costs and of those that did misguidedly follow the trend I'm sure some will luck or manage their way out of disaster for various reasons.