Severe back pain may be related to gas if it's accompanied by abdominal bloating, explains Healthline. It is possible that the foods a person eats cause excessive gas, which then causes abdominal bloating and back pain.
If severe back pain does not stop in time or if the patient also has blood in his stool, chest pain, confusion, loss of consciousness or uncontrolled vomiting, he may require medical attention, warns Healthline. To prevent abdominal bloating and back pain from occurring, Healthline suggests drinking plenty of water, following a high-fiber diet, breaking up meals to several but smaller ones, and regular exercise. Over-the-counter drugs such as simethicone drops, digestive enzymes and activated charcoal may also help.