You need to change your life style - maintain correct body weight, non Obese, drink plenty of water, exercise regularly. Eat home cooked food. In spite of these if you have problems continuing then you have to get examined by a Gastroenterologist. It can be irritable bowel syndrome.
Next Steps
Consult a Gastroenterologist