Here are given some measures to stop this condition:

Babies, who are bottle fed, can be given relief by changing the milk,

Change in the place/environment, probably the baby is not able to adapt it.

Mother, feeding the baby, should avoid foods like cabbage, broccoli, cauliflower, sprouts, parsnip, beans caffeine, alcohol, spicy food, etc, which may trigger such reaction.

Babies may not be okay with the cow's milk because it is not easily digestible.

Make the baby to burp after every meal, as it really essential for the baby to be fit and happy.