Scientists Discover Substances in Coffee That Cause Stomach Irritation. From the WebMD Archives. March 22, 2010 - Scientists in Europe say they’ve pinpointed several components of coffee that may cause many people to suffer stomachaches and heartburn.