Gastritis pain that is relieved by trigger foods? PLEASE help me

I have gastritis and when I eat bland (chicken/rice/potatoes) I have 24/7 burning and yellow stool. When I eat ANY processed junk food I have zero pain and it relieves my symptoms??