Mastitis antibiotics making my baby miserable 🥺

I’m a month pp and got mastitis last week for the first time. I was given an antibiotic to take 4x daily for the next 7 days and we are three days into the prescription. My usually easygoing baby is now only sleeping if I hold her(which was normal for her during the day but not all night) and will wake up screaming with discomfort. She has gotten mild diarrhea as of today, has started spitting up 15 min after each feeding and her breath reeks of vomit(no more sweet baby breath 😣) The doctors tell me I am ok to keep breastfeeding her but I hate seeing her so uncomfortable and upset and knowing it’s my fault. Should I switch her bottles and freezer milk for the rest of the prescription or keep breastfeeding??? I am at a loss right now and emotionally not doing well from seeing her like this all day. I feel like I’m hurting her with my milk😢 sorry if this post is too rambling I just need to know if someone else has gone through this and gone back to normal breastfeeding after