I have had persistent problems with my xps freezing and emitting a loud buzz - usually listening to music or watching a film on Netflix or similar.
Ran a diagnostic test and got this error message:
Processor fan failed to respond correctly
Any advice welcome
Check the fan to make sure it's rotating freely (free of dust) - - it it's not, try cleaning it. If that doesn't solve the issue, replace the fan.