Failure has many forms. It could be a failure in work, relationships, status, etc.
Failure is also perception. What you may perceive as failure, may not be a failure to others.
Failure is an emotion. When you cannot uplift your spirit, you feel you have failed.
But whatever the failure, failure is just like a passing cloud. It passes away very fast when you are not attached deeply to your identity, you are able to de-ego yourself. When that happens, the hurt of failure heals fast. Even otherwise, failure can always be healed.
Failure is just a bruise, not a tattoo.