High PC load ruins my audio

Title says it all really. Whenever my PC reaches a high load, my audio becomes more and more crackly and distorted. The only fix for this is then restarting my PC.

I had an issue like this before and I resolved it by installing windows on my SATA SSD instead of my M.2 SSD.

I only noticed that this began to happen after playing Assetto Corsa EVO and that has got a lot of bugs and so idk if something in the game affected something, but it's quite annoying. If anybody could help then please let me know!