For what it's worth, I've seen similar behaviour when untidy MIDI data was being sent to a Kontakt instrument.
In one case, there were a number of duplicate note events sent to a guitar instrument. In another case, there were a lot of zero-duration note events sent to a drum instrument (probably caused by some badly misjudged global MIDI edit operation). In both cases it appeared as if some Note Off events were not properly matched by the instrument which caused a small amount of CPU being wasted for each pending event even after the playback was stopped.
A couple of odd MIDI events didn't really matter, but when I kept repeatedly playing back the project, the tiny effect gradually cumulated until glitches, audio engine dropouts and even SONAR crashes started.
So it might be worthwhile to also take a look at the MIDI data stream that's being sent to the instrument.