I've made more than a few posts about my trials and tribulations of trying to become a pilot, I know where your coming from.
My DPE told me afterwords that I had given him the best check ride he had had in years.
I fly with complete confidence now, so all that repetitive training ended up being worth it.
We were told in ground school that over fifty percent of people who get their certificate never fly again. I think the reason for that is they were trained to pass their check ride, they were not trained to be a pilot. They lacked the confidence in themselves to be a safe pilot. They probably thought luck got them through it.
Your instructor sees a pilot in you, so that is what he is making. Anyone can get a certificate, not everyone can be a pilot.
It's not a matter of hanging in there, its your road to being a pilot, enjoy the ride. In the end, it will have been worth it, trust me.
John