It may cause Gastritis, but you can take medication for gastritis along with it. Usually Pain killers, antibiotics and paracetamol causes irritation to stomach, so we preferably advice to take it just after food. So I would suggest you take just after dinner or take Gastritis medication. Hope it helps. Get well soon.
Next Steps
You can reach out if any further queries or condition worsen or does not improve