As mentioned earlier, the Netflix code NW-2-5 usually occurs when there is an internet connectivity issue. This can occur because of the low speed of the network.
Though you can stream the content available on Netflix while being connected to the Wi-Fi, weak signals, congested network, interference, are some of the reasons why the problem may occur.
So, to fix this problem it is better to use a wired network connection.
So, you can try connecting with the device and the router using an ethernet cable connection. Another, that you can try to fix the error code is by bypassing the router and connecting the device directly with the modem.
You can also try moving the router closer to the device if the device is connected but has weaker wi-fi signals.