Foods that can be harmful to the digestive system and cause bloating and lower abdominal pain when consumed include specific types such as legumes, citrus fruits, vegetables, fried foods, spicy foods, sugar, and caffeine. Additionally, there are types of foods that should be avoided on an empty stomach, such as bananas, tomatoes, tea, cucumbers, dairy products, sweets, and oranges.