DPC Latency in a nutshell. (A simplistic explanation)
Your CPU is constantly processing lots of requests, not just from Sonar, but everything else in Windows as well. Occasionally a process will momentarily grab exclusive control of the CPU, or force it to stop everything it is doing and wait a short time for something to happen. This may only be for 1ms (1/1000th of a second) or less, but in terms of Sonar that is 48 audio samples (at 48k sample rate) so if you're running an ultra low 96 sample buffer to get great response you just lost half of your available processing time in one go!
If the sample buffer ever empties it stops feeding data to your audio interface and you get dropouts. If it's constantly running near empty you get lots of short dropouts, ie, crackling.
The short term fix, increase buffer size.
The long term fix, find what is grabbing the CPU and stop it... (It is usually WiFi adapters)