In this video, I go over a few simple steps on how to fix your internet connection or wifi connection on your Nintendo Switch.
The easiest way to fix simple bugs like this is to fully hard reset your Switch. Simply hold the power button until the menu comes up, then press power options and power off. This will power off. Once you start your system back up, all bugs and glitches including your internet connection should work.