your pain description does not fit into one particular diagnosis
yes, burning and gnawing pain worsening with food can happen in acidity/ulcer problem it is unlikely to cause sharp or stabbing pain
which usually suggests pain origin from abdominal wall.
Its important to see which is exact sight of pain and how long it is there.
You should get an endoscopy
and ultra sonography
to see the origin of problem and the decide on treatment some time it could be just dyspepsia
or functional pain syndrome
aggravated by anxiety
hope this answers your query
please do reply in case of any further questions
wish you a speedy recovery