James Middleton has been open about his mental health battles, and the star shared some advice in a clip with one of his dogs