I have used Octoprint on an rpi3 and an rpi4 over the past few months, and never have a connectivity issue.
However, I had a Duet 2 Wifi that would always drop within 5 minutes. That was during setup, only a few feet from the router, and it went on for a couple weeks. I thought it was a faulty wifi board, so I just set it up with the sd card. I put it in a box and when I pulled it out later to finish it, I never had one drop out. The only difference was a router restart, and turning the Duet 90 degrees. I do not think the latter resolved the issue. And, yes, that router had been restarted before.
And my Pi Zero W...that's been connected for a full year, down a flight and across the house from the router, and it has not dropped once that I know of.