what do u say when you get complimented

Most people when complimented say thank you and continue a conversation from there. But why is it that when I'm complimented my head overflows with thoughts like "oh they're just saying that", "don't say thank you cs ur going to sound self obsessed", don't say thank u cs ur gonna sound cringe", "don't say 'no way' or they're gonna think you're just fishing for compliments", "don't say 'you're pretty too' or they're gonna think ur just saying it to seem nice"

all these thoughts and not a single one is useful..