Gas has gotten worse

Ch

My son is 5 and a half months old and for the past two weeks gas pains have been waking and keeping him up (unless he’s on me) at like 3 in the morning. He’s on mylanta, dr browns bottles, alimentum, I do bicycle legs. I don’t know what has changed to cause this. We started solids but only 4 days ago and it’s been going on for two weeks so it’s not that