If the problem is the same from both this blue box and your TV TOSLink audio out, then it’s really an issue with the source, i.e. the Nintendo Switch Dock. I don’t think you’re going to easily solve this problem without spending more time and money
Maybe the following thread will give you some ideas - the Wyred4sound Reclocker seems to work well to address TOSLink issues into dCS systems.