It's the 8 hour timing that I wonder about.
Something else to try the next time this problem appears is to leave the computer on, but turn the modem/router off then back on. Wait a few minutes and see if the problem resolves. If it does, you have a modem/router issue, not a computer issue.
For your computer to use the internet, it needs an internet address. It's called your "IP address." Your computer automatically gets this IP address from your modem/router. But the modem/router doesn't assign that number to your computer for eternity-- far from it. Most internet providers have more users than they have available IP addresses. So these IP addresses get shuffled around as you need to use their internet service, but also quietly reclaimed during periods of non-use.
There is likely a setting in your modem/router that controls how long the "lease" is for regarding your use of that number. I'm curious if your IP address lease time is set for 8 hours in your modem/router. And curious of the problem is being caused by that lease expiring. If this is the issue, try editing that number in your modem/router. If its set for 8 hours, try setting it for something like 30 days instead.
Finally, before changing any settings, make sure it is definitely is a modem/router issue. As described above by cycling power on the modem/router to see if the problem goes away.