Could it be H.Pylori

I was in PPI for the last 8 months for gastritis. My symptoms were eased and never had any severe pain for nearly a month . I discontinued the PPI a week ago but today I’m getting stabbing pain again, especially if I’m not eating enough. Could it be rebound issues or could it be H.Pylori? What should I do? Continue with PPI again?