My personal belief is that stress isn't just a factor it is the major factor from which all others stem. This is not at current medical opinion, nobodies proven a link, so please feel free to take this with a pinch of salt, but it's always been known that stressed patients tend to produce these symptoms very commonly, and my own experience over several years involved in health care is virtually all patients with reflux,gerd, peptic ulcers etc, are or have been suffering from prolonged stress or sudden stress immediately prior to their problems. Many have regular panic attacks, insomnia and other stress related ailments.
The problem is many of the patients themselves either don't realise they are under stress, which is more common then you'd think, or they simply don't recognise the link between those symptoms and their gastric symptoms, so they neglect to mention them to their health care provider, and it perhaps comes out months down the line as a passing thought or aside, if at all. This obviously colors the view of health care providers as to the real significance of the link. I'm neverthe less convinced the link exists and is very strong for several reasons.
Stress, emotional stresses tend to effect muscles all over the body, tensing them, untensing them, unneccesarily. Often the system not just gets triggered unnecesarily but shortwires, and muscles either get locked in tension states, stiff and painful, or they twitch uncontrollably. Whilst this is most visible on the outer muscles, ie, legs eyelids, face muscles, this also effects the internal organs and the muscular responses. The stomach and gut basically passes food through it, through this process of tensing muscles and relaxing them to push food slowly but steadily through the system. Stress makes this go haywire and not only interrupts proper digestion,but often causes extreme pain and discomfort, such as i.B.S.
Of course all this in itself does not cause acidity and ulcers, but a stressed person tends not to be eating healthily, and will be getting too much fats, sugar and acidy foods, perhaps alcohol and nictoine too. When this is combined with a poor digestive system already, the stomach holds on to this excess acid and it burns away at the walls and lining of the oesophagus, stomach and doudenum. This where h pylori comes in. Most people can hold this bacteria in there stomach without ulcers. But the excess acid and lowered immuno system of a depressed, anxious and/or stressed person act in unison to create an enviroment where it gets out of control easily and causes inflamation and ulceration. The pain described here below rib cage sounds typical of duodenol ulcers, which are much more common then gastric ulcers in the stomach, and typically effect younger people (25-50) more than older, and are generally more common in males, unlike gastro ulcers. One way of telling the difference, usually fairly effectively is duodenol ulcer pain is usually bad on empty stomach, is slightly relieved by eating then returns 3 to 4 hours later. Stomach ulcers can also hurt on empty stomach but pain usually far more pronounced immediately after eating, and is typically sharp and stabby, whearas duodenal ulcers dull and achy, sometimes stingy (like the bruise feeling someone described).
Anyway a proton pump inhibitor such as omoprazole with a two weeks course of antibiotics is usually extremelly effective in curing ulcers. However if you can't tolerate medications there are natural alternatives. Manuka honey is reputed to be extremelly effective in healing gastro problems, including ulcers. Once ulcer or reflux is gone it's important to make lifestyle changes, and to be honest this means changing diet, and cutting stress. Best way to do that is to exercise regularly, and balance with relaxation maybe armoatherapy or meditation classes. Yoga and pilates give a good balance of both and you can start off quite lightly with either, if your quite weak and inactive. Lastly regular sunlight and acces to clean fresh air is extremelly important to healthy mind and mental calmness and clarity.
Of course, though privately i'm 99.9% certain all the above will work, i'm not trying to suggest anyone takes my advice or opinions 9which is all they are) over your health care providers. It's equally important also stress these things must be checked out thoroughly each and everytime, before any meds or lifestyle changes, because though stomach cancer is extremelly rare, and ulcers extremelly common, the two conditions can have very similar symptoms, can even co exist tgether being causative agents in rare cases, so one must always be thoroughly checked out and on safe side.
Anyway hope thats off some help to someone out there..