I am a happy person but...

I am a happy person but the thing is that I never feel good about myself for a longer period of time even when I do a great job or succeed in something. The smallest mistakes during the process become my main focus and that ruined some of my interests, because I only got frustrated with my shittiness at it. I have an extremely supportive and loving boyfriend and even though I trust him, when he compliments me on something I did I find it difficult to believe him. It bothers me that I don't believe in a positive feedback from a person I care about but the smallest criticism from a stranger stays in my head forever. (Even if I don't make that mistake i was criticised for anymore). What can I do to be able to take compliments and feel more worthy to myself?