This happens to all of us and it is, indeed, frustrating, but it really doesn't have anything to do with anxiety. I have no "cure" to offer you except what the rest of us rely on, which is simply that in time it will stop. If this has started to interfer with your ability to study, you should probably seek out the help of a therapist.
Wish I had a better answer for you.