Youtube audio has echo in Safari on macOS
It's an old bug in Safari, and it is still present. If it really annoys you, the only suggestion I can come up with is to use Chrome as an alternative.

Link to reddit discussion