In my case the IKernelMemory object ImportTextAsync method encountered this same exception however it was just a first chance exception (was handled and my code continued past the call and everything worked). You could report this issue on https://github.com/microsoft/kernel-memory.