The looping audio upon crash is the last bit of audio that was in the buffer (looping).
BSOD is usually indicative of a hardware or driver issue.
In a modern machine, the most likely culprit to fail is a stick of DDR3.
Thus, I'd test your RAM to be sure all is ok.
I'd follow that up by running a stress-test to make sure the core hardware (CPU, motherboard, RAM) are ok.
If the machine passes those tests without a problem, you can rule out the machine itself.
Since the issue doesn't happen when tracking (not using much RAM), I have a suspicion that you may be "RAM starving" Sonar when mixing. With a full mix (especially if you're using any virtual instruments), it's really easy to blow thru 4GB of RAM (which is the limit for any 32Bit application).
As a test:
Install the 64Bit version of Sonar (if not already installed).
Open your project in the 32Bit version of Sonar, use the 32Bit plugins mentioned above), then freeze the results and save under a different file name.
Now, open this new file using the 64Bit version of Sonar.
If you can do this and continue without BSOD, you've found the culprit (RAM starved application).
If that's the case, using a 64Bit DAW application is the only solution.