The switch doesn't have a particularly powerful Wi-Fi chip, so you may have connection problems when you're away from the router. Keep an eye on the Wi-Fi indicator light in the upper-right corner of the Switch's home screen to see how reliable your connection is. If possible, move closer to the router to get a more stable connection.