You can't just give up on someone because the situation's not ideal. Great relationships aren't great because they have no problems. They're great because both people care enough about the other person to find a way to make it work.
Forgiving those who hurt you is primarily about forgiving yourself; i.e. stopping to hurt yourself every time you replay the scene where you were hurt in your mind, as if you had been the guilty one. You never were.