There is so much focus on “bloating” but in reality this is just apart of your general digestive health and problems. It is not a type of an allergic reaction and there is no reason to stop eating foods that cause bloating.
If you lack digestive enzymes then your body may not be breaking down the food you eat. If you are not producing enough stomach acid, then your body won’t break down the food you eat and the critters in your body such as h.pylori may not die. Additionally, if you lack HCL you may get gas and this is different than bloating…it means that food is fermenting in the gut.
Also if you are dehydrated this is another tax on the body.
In general it is nothing to be concerned about in my opinion except if accompanied with other symptoms such as gas, then there are remedies.