You can connect Bluetooth headphones to your Nintendo Switch through the System Settings menu, or with a Bluetooth adapter.
The error message "Can't connect to this network" is not an uncommon result when Windows can't connect to the internet.