After I read the first paragraph, I could guess the rest. It is typical for the legacy enterprise system space.
My diagnosis is that you care too much. The enterprise IT space is kabuki theatre.
So what if it takes 6 months to accomplish what should take 2 weeks? Explain to the customers that their needs are so special and particular that it takes your highly trained and experienced staff 8 months to accomplish the high quality results that you demand. Every line of code is carefully written and rechecked, etc. No AI slop is allowed anywhere near your exacting group. You are delivering Saab fighter jet plane quality software, not some cheap and nasty jeep software from Cuba.
Of course, the real challenge is to say stuff like that with a straight face. If necessary, take improv acting lessons. After all it is all an absurdist theatre production.
... and keep sending out resumes, etc.
No job is worth jeopardising your mental health.