Am I a bad mum for wanting to give up?

My baby is 4.5 months old (20 weeks) and since he was 8 weeks old we’ve had issues with thrush, him getting very fussy and refusing to feed, and me in a lot of horrrible burning pain. I was finally given a high dose of Fluconazole for 14 days which I finished yesterday as well as dakarin gel for my lo. It hasn’t improved his eating, and I worry very much about how much he’s actually getting. He only has 3-4 wet nappy’s/diapers a day. I feel so guilty for wanting to stop breastfeeding, the times that it’s been good I’ve enjoyed it so much. We used to be really good at it. He never lost any birthweight and I was ever so proud. But I feel like it is now effecting my mental health a lot. I have anxiety about his feeding all day long until I go to bed at night. Am I a bad mum for wanting to stop breastfeeding?