A young Co Tyrone man who died suddenly was struggling with his mental health in the days and weeks prior to his passing, an inquest has heard.