Mastitis

I’m dealing with mastitis for the third time in a 3 month, 3 week period. Anyone else dealing with mastitis and have any tips? I’m at the point where I feel like I have no other choice but to give up breastfeeding.