All of us make mistakes. The key is to acknowledge them, learn, and move on. The real sin is ignoring mistakes, or worse, seeking to hide them.
Attachment is the root cause of all misery - and our mind is such that it starts clinging to each and everything. It starts becoming identified, attached, it does not know how to keep a distance; hence the misery.