At my wits end😥😰 my 10 month old keeps biting me and how can I make it stop?

I been exclusively breastfeeding my daughter since birth and we did great in the beginning till I was losing my supply but, thankfully I gained it back. My daughter has four teeth in the front and she's now discovering them. Which leads her grinding her teeth seems to be alot. She's biting me alil bit while looking up at me basically seems like shes testing how much pain I can handle. I yell abit out like ow and she laughs. Well, ever since yesterday she literally yanked my nipple with her teeth and I had to squeeze her cheeks to let go it caused so much pain I get terrified every time I breastfeed her. My goal is to breastfeed till she turns one and am holding on to hope until she continues to do this every session. Any tips???