Let's power off printer and router. Power on router and wait 2 mins. Power on printer and verify it connects to your router.
Now when the problem occurs, do you see the printer's IP as connected in the router? Can you see the routers SSID as connected in the printer?