I can empathize, because I went through a period last year of having stomach cancer fears. I developed a number of symptoms, including bloating and general discomfort. All of my health care providers assured me it was nothing -- probably just anxiety. Eventually I saw a great GI specialist who was very reassuring. He said (as others have pointed out) that stomach cancer is very rare, and typically occurs in older Asian men. He also noted that people who have stomach cancer experience constant, acute pain. It's not diffuse; it doesn't come and go.
(One of the things he said to me has helped greatly with my overall HA: "Bad things don't come and go. They come and stay.")
And about H. pylori: Yes, having it is a risk factor for stomach cancer. BUT it also appears protect against esophageal cancer. H. pylori literally eats acid. Many people who get treated for it end up with acid reflux and heartburn. (Rates of esophageal cancer have gone up in recent years, possibly because rates of H. pylori infection have gone down.)
I asked my GI specialist if he'd ever been tested for H. pylori, and he said, no; he didn't want to know. Because in the vast majority of people, it causes no harm, and may even provide some benefit.
What was up in my case? Probably a mild case of gastritis, aggravated by anxiety. It resolved itself completely in a few weeks.
You are and will be fine!