Not a pilot but a mech design engineer in the aviation industry.
4 years in the military business and 12 years in the completion business.
Yes I lost confidence in my preparation and my judgement a couple of years back but I learned a lot from that.
In your case, your hardest challenge is not controlling the airplane in a gusty approach, but controlling your mind.
Remember this: mistakes are not our enemies, we're our own enemies when we can't control our mind. As long as you admit and learn from a mistake you can only get better. Mistakes are there to make us better and experience comes from mistakes.
The lesson here for you is that now you know that things are not always smooth and easy. You probably didn't know this before so you're a better pilot now.
Self confidence takes a long time to come back, but when it's back you feel better than before so keep up your work and your training.