@sophiahrz The number one thing your kid benefits from is a happy, well-regulated parent. If you will be a happier mom by switching to formula, do it!!
I have read that the major immunity benefits from BM come from actually breastfeeding (not pumping) because the saliva-to-nipple transfer...