Thanks man. I conceptually understand why it shouldn't affect my confidence, but it eats at me nonetheless.
It's absolutely understandable. Losing always leaves a bad taste, but if you analyse your loss intelligently it will definitely make you stronger. Talk with your trainer/coach about your feeling and loss in confidence so he can better adjust your training to build it up again.
I wish you good luck with your next fight and fighting future.