Stress can aggravate ulcers, as it can aggravate any number of underlying conditions. Similarly eating spicy food can make the symptoms of acid reflux much worse thanks to capsaicin in the refluxing acid. But in both cases the root cause is something else.