A Legacy Mission initiative — free & confidential mental-health support
ASK A QUESTION →

Can a Long Physical Illness Like H. pylori Cause Anxiety and Scary Thoughts?

Answered 19 October 2026 at 8:50 pm PKT

A chronic physical illness can sometimes trigger or worsen anxiety, intrusive thoughts, and feelings of unreality. This page explains how conditions like H. pylori may affect your mental health and what you can do about it.

I had a stomach infection (H. pylori) for nearly two years, and since then I’ve been struggling with overthinking, scary thoughts, and a terrifying feeling that my mind is being controlled or hacked. My head feels heavy, I can’t focus, and I’m scared. Can a long physical illness cause these mental health problems?

Yes, a long physical illness can absolutely cause what you are describing. Two years with H. pylori is a serious strain on your body, and when the body is under that much stress for that long, the mind often follows. The feeling that your mind is being controlled or hacked, the heavy head, the scary thoughts — these are not signs that you are “going mad.” They are a very real reaction to what your system has been through. Many people who suffer chronic infections report exactly this kind of mental fog, intrusive thoughts, and a sense of unreality. It is frightening, but it is also something you can work through.

The gut and the brain

H. pylori lives in your digestive tract, and the gut and brain are connected by a direct highway of nerves and chemicals. A long infection can upset that balance, leading to anxiety, overthinking, and strange sensations in your head. On top of that, being sick for two years wears down your emotional reserves — your mind gets exhausted, and that exhaustion can show up as scary thoughts or a feeling of losing control. You are not being hacked. What you are experiencing is your brain trying to cope with prolonged physical stress, and it is genuinely hard.

What you can do now

First, make sure the H. pylori is fully cleared. Have you had a follow-up breath test or stool test to confirm it is gone? Sometimes the infection lingers, and that keeps the symptoms going. A gastroenterologist can check this.

Second, show this same question to a psychiatrist or a general physician who understands mental health. They can help you with the overthinking and the scary thoughts — often short-term support or therapy makes a big difference. There is no shame in asking for that.

Third, try one grounding trick when the heavy feeling or the “hacked” sensation comes: press your feet flat on the floor and name five things you can see around you, one by one, out loud. It sounds simple, but it reminds your brain that you are here, in your body, safe. Do it slowly.

You have already survived two years of a tough infection. That took strength you may not feel right now, but it is still there. With the right help — for your stomach and your mind — this fog will lift. Zara is here to talk whenever you need.

Names and cities shown here are examples. Every question is published anonymously — we never ask for, store or show the name, city or contact details of the person who wrote it.

Still on your mind?

You don't have to work this out from an article. We're free, private, and here right now — in English, Urdu or Roman Urdu. No signup, no waiting, no judgement.

💚
Answered by the Depression.pk team
A free mental-health service for Pakistan. Reviewed for safety before publication.
🔒
Anonymous by default
Names are always changed. Nothing identifying is ever published.
🆓
Always free
No signup, no paywall, no adverts, no data sold.
📅
Last updated
🔒
Every question here is published anonymously. Names are always changed or removed, and nothing that could identify the person who asked — their name, contact details, location or history — is ever shown or stored with the question.
🌙 Talk to our team
0:00