Eating while having an upset stomach will likely just result in you throwing the food up.
When you have an upset stomach you should try and make yourself throw up before eating anything.
Throwing up will help relieve your stomach pain from the upset stomach too.
Just keep trying to gag and you should eventually throw up. You'll feel much better after you do throw up.