Well, what
I did was quit and get another job

I can't show you the worst I've seen, because it pre-dates digital photography. About 30 years ago, I worked for a company making equipment that was mostly built around sets of (roughly) 14-inch-square boards. It was run by the sort of people you'd need for an interstellar colony, because they refused to scrap
anything, no matter how much effort it took to make it work.
We had one board that was the core of the interface to a variety of mainframe computers, and had to deal with their subtle deviations from the nominal specifications of timing, voltage levels, etc.
As the company encountered different makes and models, the board had to change repeatedly, but management insisted on updating old stock to the current design. At one point, we had old boards with over a dozen levels of rework on them, comprising somewhere between 400 and 500 wires. They literally looked almost like they had been wire-wrapped. I was one of the national tech support guys, who provide telephone and fly-in support to the field service organization. After watching them struggle with this sort of lunacy for a while, I said "This company is doomed", and went to work with a differently-crazy bunch
