Anyone diagnosed after stressful life event?

I’ve always had digestive issues but they didn’t become concerning until after my husband was hospitalized in the ICU, uncertain he would make it.

A couple of months after he came out I started having all kinds of crazy stomach issues, which lead me to being diagnosed with H pylori. Idk why I feel like it was an incidental finding though. Recent endoscopy showed a healthy stomach and esophagus.

Could all my issues be functional? Anxiety/depression?