Nipple Biter! Help

Sadie
My daughter is 5months and is teething and also begun weaning to solids. She loves her solid food meals but still comfort nurses and breastfeed a several times a day. The last 3 days she has been butting and pulling my nipples. I am so sore, in pain and don't wanna keep breastfeeding if she is going to keep doing this. Any advice to getting her to stop or what I should do? I want to fully wean off the boobs but I feel she is not ready for that yet.