If you have more than one hard drive, then by all means move your Cakewalk Projects folder to the additional drive. This will help performance.
You would copy the current Cakewalk Projects folder to the other drive, then go into Sonar and change the File Location for Projects in Preferences to point to the new location, then after making sure everything was cool you could delete the original Cakewalk Projects folder from the C: drive.
IDE and AHCI are 2 kinds of operating modes for hard drives. You can get into trouble switching from IDE to AHCI mode, so the slight performance gain from AHCI may not be worth worrying about. (it can cause boot errors, depending on how and when the mode switches to AHCI). AHCI also supports hot-swapping, but that's not a compelling reason to switch to it. (I happen to have a hot-swap external bay on my case, and I routinely scrub other people's hard drives for viruses, so I happen to use it, but that is not an ordinary scenario for most users).
It would seem that the disabling of the Wi-Fi adapter has eliminated most of the problem for you, and please note that you would only need to disable that when getting ready to run Sonar. Once your Sonar session completed, you could once again quickly enable the Wi-Fi and have at it.
I am not sure what is continuing to cause this problem to kick in - I am wondering if there is some scheduled task that kicks off every once in a while, or something like that. Perhaps you have something like EasyTune or whatever it is called, enabled and running - this or something like it would be some sort of performance tuning functionality.
It is encouraging that you got a couple of hours of recording done without trouble, it's just a matter of detecting the culprit.
Immediately when it happens, can you close Sonar (save your work first, of course), and run LatencyMon? If LatencyMon shows a problem, this time please publish all the stats.
Bob Bone