If you have sensitive stomach or digestive issues, you should avoid eating cucumbers as they can aggravate the condition. Cucumbers contain cucurbitacin, a compound that can cause stomach and intestinal distress. Cucumbers also contain insoluble fiber, which can cause gas and bloat.