I have RPi 4 4GB and Ender3-Pro.
I had experienced much confusion in 3D printing, because of constantly losing my network conection while printing. After 5-10 minutes, Pi connection was unavalaible through every network interface - eth, wifi.
Yesterday I made a webcam stream and I've noticed, that youtube stream is still on, and I can't connect to my local Pi.
So I dig deeper, changed connectivity check settings and here's the deal:
Check interval: 15 min
Host IP: I had 8.8.8.8 and changed to my router's gateway IP (like 192.168.0.1)
Port: 53
For the record, that way you've kind of defeated the purpose of the connectivity check, which is supposed to check if OctoPrint can reach the internet. Now all it does is checking whether it can reach your router. Pinging your router is probably what is preventing some powersave function from triggering, so you should rather investigate in that direction if you actually want to solve the problem instead of applying duct tape to it.