When things happen in our lives one of our primary instincts is to react. Assess the impact and decide what action to take, if any. So we interpret, analyze, explain, justify, defend, etc. We sometimes fall into habitual roles like victor or victim. We naturally feel and think about things, but sometimes our reactions control all of our attention and energy. Objectivity, a primary approach to efficiency, is lost.
An insecure ego is quick to take credit or quick to take blame.
A healthy ego needs neither.
Your ego can become healthier just by choosing not to take either.
For more information on this topic, check out Learned Optimism by Martin Seligman or Mindset by Carol Dweck. Both are also on YouTube.