Mac loses internet connection after Sleep
Any time my Mac sleeps for more than about an hour or two, it loses internet connection. It remains connected to the Wifi network, but the internet doesn't work, even after turning off and on the wifi and disconnecting and reconnecting to the network. Even if I select a different Wifi network, the internet still doesn't work. Reboot helps to fix it, but I essentially don't have Sleep Mode since I can't sleep for more than a couple of hours without losing internet.
If anyone has any insight it would be greatly appreciated. Thank you.
My Mac is a 2019 MacBook Pro 16"
Processor: 2.6 GHz 6-Core Intel Core i7
Graphics: Intel UHD Graphics 630 1536 MB
Memory: 16 GB 2667 MHz DDR4
OS: Ventura 13.5
MacBook Pro 16″