Could you try to set a static IP for your device when you connect to Wifi? Maybe it’s not the whole router but “just” the DHCP server that dies.