We are all humans; we are not perfect. We commit all kinds of mistakes in life: be it work, life, or relationship.
We should learn from our mistakes and avoid repeating them. That will do justice. It is easy to sulk in deep emotional outbursts, depression which is not the solution.
Socrates stressed acquiring self-knowledge. I don’t think there exists anything other than that for us. We have to introspect, learn, and progress.