It is part of human nature to have flaws. We are not and never will be perfect, and our ego stands in the way of complete perfection.
Flaws are learning; flaws are challenges. Without this built-in destructive behaviour we would not be human; we strive to make a better life for ourselves and our family, encountering the ego along our path.
Like you, I make mistakes from time to time and it’s more than ok to tell ourselves that life is shit, yet it would be better to then say, 'I am not giving up, or giving in'.
Look closely into your heart, have a good cry, let it all go, and face yourself head on. Allow the heart to open. This is also part of human nature. You agree to let the ego have a moment of your time, and then you move into the heart zone.
To bring healing, whether through words or through the physical, you need to be in the heart zone. Try to stay there for as long as you can and offer the ego very little energy. Then you can give as much of the new you as possible from the heart.