He has everything! :(

My little one is 4 months old. He has RSV as well as another virus that's going around right now which I forgot the name for. He's also been constipated for the last few weeks. I'm sure it's cause of the formula because from the beginning, he showed signs of not wanting that one. He'd stiff his whole little body and grunt and wriggle at every feeding. And the "spit up" was a whole, whole lot from the get go. That was not a normal amount at all. His doctor has always been against me changing his formula. Why? No clue! He said that "no formulas cause constipation. He just needs fluids. Give him some pedialyte every other bottle until he starts to regulate. Then move on to every 2 bottles and so on." He's been on pedialyte for 2 days and still nothing. Of course what's most important is that he's sick with flu like symptoms and more than likely the pedialyte is helping with that mainly, which is great, but before he got sick he had already started showing signs of not wanting that formula. He went from eating 4 ounces, up to 6 then back down to 4 or sometimes even 3 a few times during the day :( these past two days that he's been on pedialyte, he's been eating 3 ounces. Maybe 4 at every other feeding. He's also been having a bit if a gas issue since he started on pedialyte. He won't burp and he looks bloated and his little stomach sounds like it has a lot of gas in there. I do the bycicle kicks and help him out as much as I can but that doesn't take it all out. I think that he's been constipated and doesn't want to eat much because he hasn't been having regular bowel movements. I asked his doctor that if the formula was possibly too heavy for him and got the "that's not possible" thing again. I don't know what to do. I haven't slept well these past 3 days. Idk how to help him. I was thinking of just switching formulas myself, and the best option I saw was enfamil reguline, but I wanted his input on it because well, he's the doctor. He knows more about these things than I do, but apparently I'm in the wrong? I'm stressed, sleepless and don't know what to do to help my little one.