I'm shortsighted too and I'll get them if I'm looking too close to a light. Unlike some of you on here I don't seem to get them as much or as varied.
As said though anxiety is going to see it bait in the trap. You've taken some practical action and that isn't mere reassuring seeking either because you have asked for advice from a professional and now move on accepting it's just an annoyance that you can choose to stop making you feel worse. Asking here if it's a problem in anxiety is also fine because you aren't letting it push you into reassurance seeking since you accept all responses and trust what others are saying. It's just the next step of learning to not react as much to it so it stops being an issue to you