The official way to use copyrighted music on YouTube is through YouTube Studio > Audio library. The audio library includes free music and sound effects, some of which don't even require attribution.
The BBC have made a gigantic archive of sound effects available to download in WAV format. So if you’ve ever had the burning need to listen to a "’Snow’ surface grinder operating at steel works 1969" ...