Speaking of wrestling with Kontakt - here's how to win the match and never have to get back in the ring.
1) Never use anything less that the full version - 16 stereo outs, in Sonar.
Reason is it will limit your possibilities of expanding if you need to, and the full version takes no more resources than the lesser versions.
Go to the plugin manager and disable the 2 lesser versions and never go back.
2) Reconfigure Kontakts output section as described in this video. ( jump to 5:07 for the meat of the issue )
https://www.youtube.com/watch?v=11yaPOIaZ70&t=304s The assignment menu for audio tracks in Sonar will never again be confusing!
(Edit: in the video ... Easier to delete all tracks including the 4 AUX and add 16.)
Setup to create a K5 1 track template:
3) (One time) Load and setup Kontakt with all audio outs, and with it all contained in a track folder.
Delete the second set of 16 audio outs that are not assigned to 1 thru 16 in Kontakt.
4) Remove the 1 midi track from the folder and move it to it's own folder called "K5 1 Midi"
5) Rename the folder containing the 16 stereo audio tracks to "K5 1 Audio" and also rename the tracks as 1,2,3,4,5 etc.
6) Create 15 midi tracks, move them to the folder called "K5 1 Midi" and reassign them to point to that instance of Kontakt and make sure to also assign individual midi channels and also rename the tracks 1,2,3,4,5, etc.
7) (Optional) Create a bus called K5 1 and point all audio tracks in the "K5 1 Audio" folder to that bus.
Now ... Create a track template of this setup.
From now on, any time you want to use Kontakt in a multi session to any amount of individual tracks,
just load that track template and you're ready to go.
If you're going to use less than 16 channels the just hide the others.
---
I did this a long time ago and it has been smooth sailing ever since.
P.S. It also couldn't hurt to save your output setup inside of Kontakt.
Go to Preset/Batch Configuration and save it there under a specific name like for instance
"16 stereo - No AUX"
This way, if you ever get messed up you can just reload that Output configuration.