The problem is that we need an ego to be healthy. Attempts to destroy it can wind up compromising your mental health.
The first part of the solution is to be careful what's in your ego. See https://paulgraham.com/identity.html on this topic. See https://blog.codinghorror.com/the-ten-commandments-of-egoles... for how careful choices in what we value in ourselves, can lead to thinking better.
This of course still leaves us with an identity. For that I've found that gratitude can help us deal with pain. And so targeted gratitude can help us avoid cognitive dissonance when we otherwise would be overrun by it.
Sadly, neither skill is widely taught in our society.
> The problem is that we need an ego to be healthy. Attempts to destroy it can wind up compromising your mental health.
You only need to destroy it temporarily. When you do it using certain tools or techniques, it will reconstitute by itself once the effect of the tool or technique has passed.
This temporary ego death can open your eyes without creating a permanent void where your ego used to be.