Hume died in 1776, and nothing I've ever read suggested that he committed suicide.
And I highly doubt that he would have committed suicide because of his knowledge of the universe's possible collapse... he would probably have done it out of frustration at the meaninglessness of it... Hume himself said that the notion of an afterlife was a "most unreasonable fancy".