1 The second recommendation is to avoid citrus and acidic foods and drinks. Highly acidic orange or lemon juice could irritate the ulcer and cause you pain.  You should also be wary of tomato products, onions and garlic and heavily seasoned food in general.