Should I switch?

Veyy
So I have been successfully exclusively bf my little on for over two months now. After she turned about two weeks old she had been a very messy, squirmy eater. Come to find out she was diagnosed with silent reflux. So she has been taking Zantac every night.  I have been doing the shorter more frequent feeds, but she still seems so uncomfortable while she feeds. She grunts, squirms, detaches herself. She never gets a good long feed. What if my bm isn't good enough for her?, as I will never know what it is I'm eating that could possibly be making her this way. She passes so much gas and even has poop explosions (only) while she is nursing. I'm considering trying out baby formula to see if I notice a change in her. What formulas have any of you tried after bf, and have they been working? How did u feel about transitioning? Because thinking about it shatters my heart. She has been the only successful baby I have lasted bf for this long as I have failed the first 3 times 😔 the only reason I'm considering it is because I don't want her in any pain or discomfort and I will do anything to make that better for her.