I hate to tell / telling?

Which one of these sentences is correct?
I hate to tell you this but you have to stop making that noise.
I hate telling you this but you have to stop making that noise.
Can you explain me why? Thanks :smiley:

The first one: hate to tellโ€ฆ