I know a long time has passed since this post, still I want to share what happened to me.
From one day to the next, my Switch couldn't connect anymore to my PC via USB. Then today, reading this post, especially the fact that yours was charging but not connecting, I just changed the cable: I was...