Is there a specific version of vite and sveltekit that is recommended when using the NNS packages?
Nope, those are not related.
There is absolutely no references of any @dfinity/... in the stacktrace you shared. So, this last error has nothing to do with any NNS or other IC libs.
It tells you that you have some conflicts in your svelte and vite dependencies. You have vite 5 but your sveltekit version requires vite 4.