I'm sorry you experiencing this issue. How old is the cat and what breed? How much interaction are you giving her per day?
In your case seems that it is related with stress,
Stimming is the term we use in behavior healing.
Cats who are hypersensitive, or overly sensitive to stimuli, may engage in stimming because they want to reduce their current level of stimulation, whether they perceive their environments as too intense, loud, bright or crowded.
Biting, scratching or excessive tail chasing would be a good example for these cats.
#PetBehaviorandTraining