It's not companies pulling ads that kills the platform. That's not a root cause. Ads pulling out is a consequence.
The root cause of this, is the platform owner choosing to publically engage with a heavily charged emotional minefield where everyone and their dog has chosen hills to die on.
If your goal is to try make Twitter a successful company, wading into that mess is simply not a high quality decision.