I have seen all sorts of issues with the factory sound cards while helping folks in the MC forum get started.
notes out of nowhere, missing notes, and hung notes. At times it has to do with the buffers and the way the soundcard handles or in many cases, doesn't handle the notes. .....with the realtek, normally you want to use the MME driver. Some folks have used ASIO4ALL with some degree of success. You can try that also as a last resort before buying a new and better card/interface.
OK so try this.
You say the issue is mysterious notes coming in the audio stream that do not appear in the staff or PRV and hang up until forced to stop.
So..... select the track involved and freeze the synth or bounce it to audio. This is an "off-line" process that takes the synth output and creates a new audio track from the synth's midi data.
Since the program is only doing that one thing, and not trying to do it in real time, it will take as long as it needs to render the track accurately to audio. If you have frozen the track simply click play when it's done. If you bounced it be sure to mute the original before you click play.
You should not hear the mystery note in the new track. But the whole point is to see if you do. If you hear it, you need to look for that note because it is there somewhere. If it's not there, as I suspect it will not be, the sound card is likely causing strange things to occur due to it's inability to function in the high demand environment of the Sonar world. The option is a better sound card or bounce the synths to audio as a work around.