hello my baby girl is 4 months and doese this too. her nails hurt too when they grow.
t try to give her my shirt to grab and knead it works if she likes the material, might help