IBM isn't failing, though. They're a profitable company with healthy margins, and enterprises continue to hire them for all sorts of things, in large numbers.
AI replaces nothing. A consultant or developer is not replaced with AI, he becomes more powerful with AI. An IBM consultant with AI is still way ahead of Johnny Startup with AI.