We'll need to know a fair bit more info to try and understand the issue better, what device(s) are you playing YouTube on?
Is it a wired connection or wireless? If one, have you tried the other? Have you run a speedtest? Is it just YouTube that has the issue? What type of NBN connection do you have?