Jim Smith, 43, was diagnosed with stomach cancer in July 2023 and was told he had two to three months to live