You have to decide whether your friend excites you as a sexual object or not. Then everything will be much easier. Don't be afraid to admit you're real.
Your girlfriend is not self-confident. And this uncertainty she hides behind the mask of constant attacks on you. You may be tired of this relationship.