I hate that I can’t appreciate a compliment without feeling narcissistic

Whenever I get a compliment (happens rarely, so I remember several of them) and I feel happy about it/want to appreciate it, I instantly feel narcissistic and arrogant.

For example I’ve been called smart or nice by other people before, but when I tried to appreciate these compliments, my brain was instantly like: “So you appreciate that this person called you smart? That’s just like agreeing with that person, which is essentially the same as praising yourself to be smart, you narcissistic asshole!“

Or “Ah, so you’re happy that you were called nice? You can’t fool me, you’re just hyping yourself up to be a good person! Get back down to earth, you self-absorbed arrogant fool!“