Certain medicines can cause drug-induced esophagitis. If taken with little or no water, medicines can get stuck in the esophagus. The medicine can irritate the esophagus and cause it to swell.