The following are some foods that may worsen ulcer or gastritis symptoms: 1  Beverages: Whole milk and chocolate milk. Hot cocoa and cola. 2  Spices and seasonings: Black and red pepper. Chili powder. 3  Other foods: Dairy foods made from whole milk or cream. Chocolate.