This is super common with anxiety. Whenever I had it, I found it helpful to chew gum or suck on a lozenge so I could focus my energy and attention on that instead. (Plus, it could be minor throat irritation, which a lozenge would help.) Drinking some tea or hot water with a lemon is another thing that could help both small respiratory discomforts and anxiety.