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 188.8.131.52 and changed to my router's gateway IP (like 192.168.0.1)
Test both, to be sure.
Since this change, I made 4 successfull prints in a row, and my Pi running 48 hours straight now, so this workaround solved my problem.