According to your history - back pain with moving and breathing with gastric issues Indicate that - you have Gastritis like infection .
Any gastric like issue generally doesn't happen as usually.
I think that you should change your life style like take sufficient amount of water ,
Take less spicy and fatty food .
Now you have symptom so you should take -
as a symptomatic treatment -
1 - any proton pump inhibitors like - Pantop DSR - when you get gastric issues.
For pain - take any pain killer - like Calpol 500 mg .
Next Steps
For correct diagnosis and treatment you should take consultation once from a doctor .
Health Tips
Keep positive attitude to fight any disease and any problem of your life.