With either of these there is a fairly simple medication treatment. There is also the possibility that gas is caught in the colon. This is even less serious that acid reflux and does not require medication to resolve it. Sharp pain left side under ribs might come from a condition called costochondritis.