Fussing while eating (BF babies)

Sara • Married to my highschool sweetheart. SAHM of 3 wildflowers. baby #4 making their debut 2024
My baby girl is 6 weeks old and at times she will be latched on my breast and start to throw a fit. Crying and thrashing her head and brutally kicking her feet. It only lasts a couple of seconds then she relatches and it'll happen again later in the feeding. She doesn't do this at Every feeding only occasionally. Does anyone else have this problem? How can I fix this?