A 12-year-old boy on long-term, high-dose naproxen for juvenile idiopathic arthritis develops epigastric pain and has one episode of hematemesis. An endoscopy reveals multiple erosions and a 1 cm ulcer in the gastric antrum. What is the primary mechanism of his ulcer formation?