If you are wallowing in overwhelming feelings of sadness and failure in respect of your divorce, it will undoubtedly have affected your entire disposition.
Let me take the liberty of reminding you that you are not a failure at all, these things happen, divorce is a pathway walked by close to 50% of the American and UK married population; they aren’t failures either, they are just regular Joes and Josephines like you and I.
It might not feel like it right now, but you are so much more than an ex-spouse. Lift your spirits by reminding yourself of your other identities: are you a much loved scoutmaster, are you a great colleague at work, are you a valued member of a voluntary organisation, are you an unsung hero of a carer? You are a multi-faceted work of magnificence who is just not feeling very well at the moment.
Your self-esteem will rise again, as will you, like a phoenix from the flames.