While others may break your heart, they cannot make you live in misery. You control your emotions and, while the hurt can be overwhelming, you have the ability to move on and live to love another day.
Be careful not to hold on when you need to move on. Moving on doesn't mean forgetting, It means you have chosen happiness over hurt.
Nobody's perfect. Accept yourself as you are and don't be so hard on yourself. Be grateful for the life you are.