I kind of found a solution. I cannot stop it from happening, but so the sound isn't in my Youtube videos, I can use a microphone. That works but it brings me to another problem: When I use a microphone, only the sound that goes into the microphone is recorded. Not the sounds on the computer. If I use no microphone, than the internal microphone would be used and it records the sounds on the computer and my voice, but also the annoying fan sound, but if I use a microphone, my voice is recorded and not the fan sound, but not the sound on my computer either.