I have been eating very hot chillis for years - habaneros, scotch bonnets, etc. All my curries are phall hot. Touch wood I have never had any stomach problems (lower down gets interesting though !).
I always thought that stomach ulcers had been tracked down to bacterial infection anyway, and are virtually a thing of the past.