More of a PSA: RF interference is real! I had a successful setup of Octoprint on RPi4 with an Ender 3 Pro. Then I introduced a Gosund LED Light Strip which uses the Tuya style of wireless connection. I started getting connection problems and the printer would randomly stop mid-print. This can be really frustrating when you have 10 hour print. I Googled the potential issues, and it always came back to "check the cable", "check the signal noise." The smart LED strip was the only net new addition to the environment. But given that there was a wireless webcam very close by, in the environment, plus other Tuya-based smart devices all around my garage, I refused to believe that the LED strip had anything to do with it.
Instead, I ordered a brand new gold-tipped USB cable, I ran Octoprint in safe mode, I reinstalled Octoprint several times, using several different versions. Out of options, I disconnected the LED light strip, not just turned it off, but disconnected it.
Voila! 10 hour print that I started and tried, and retried, a week ago - success first try. I'll never ignore the experience of others on the forums!!!