Breastfeeding 2 year old and oversupply

I don’t know what to do I have been breastfeeding for over 2 years. From the beginning I have had an oversupply. I stopped pumping at 3 months and my toddler eats all types of food and 3-4 meals a day but he’s still breastfeeding 10-15 times a day. I don’t know what to do I have tried weaning him but every time I try I get super engorged and end up with mastitis. I just don’t know what To do.