Sleep mode and will not wake from sleep

are you sure the router isn’t giving up the DHCP IP lease while it’s asleep?

Try a static IP or reserving an IP in the router’s DHCP settings.  just to troubleshoot.