How to treat mastitis?

Needing advice for pumping and mastitis. I’m an EP due to latch issues and oversupply. I’ve had mastitis twice in 3 months and had to be hospitalized both times. I’m not ready to stop breastfeeding yet though. Anyone taken sunflower Lecithin to help with clogged ducts/mastitis? Any side effects for baby? Also anyone ever had a baby be able to latch on after EP? Thanks!