This is how to disable the default Windows error sound, which occurs, for example, when you search something in a browser and there is no result, or when you type something wrong in a terminal.
I tested this on a german Windows installation, so I'm not sure if my english translations are the correct ones.
- Search in Windows for "Sound settings" (German: "Soundeinstellungen")
- Click on "Sound-Control-Panel" (German "Sound-Systemsteuerung")
- Choose "Sounds" tab
- Look for "Default Sound - Warning Signal" (or something related, in german it is "Standardton Warnsignal")