Windows does all sorts of things even when you think you're not using it that much.
Registries get affected for the most when you:
- install/uninstall programs
- install/uninstall hardware
- run updates
- move folders locations (especially important for VST libraris)
- run supposed "pc tune up" applications
- setup windows to self optimise (or destroy

)
If you say that you didn't used to have this problem but now you do, maybe something happened there. The reason why I go down this route is because of your mentioned blue screen. If it was a Sonar/Audio/Latency issue, at worst Sonar would have crashed. But a blue screen??? That screams drivers/registry to me.
Do you get the crackling sounds now on other projects too or only the song you did the other night?