I’m in a similar position. Instead of ibuprofen I take Gastro Resistant Naproxen and Esomeprazole. The GR type is less likely to upset my stomach and Esomeprazole (a PPI or proton pump inhibitor) protects my stomach. These are both prescription only, so may be worth a trip to your GP?