Had the same problem with Raspi 4B. Problem was dependent on screen resolution (!!). With 1920x1080, wlan0 became disconnected after it was ok at lower screen resolutions. Was in 2.4GHz band. After turning on 5GHz in the router and going into the network preferences (right click the network icon top right on screen) and SSID ... and checking "automatically configure options" the connection remains stable (so far :D ).
When I connect my USB 3 hub to it, I lose my WiFi :(
I Googled it when it happened a while back, and apparently other people have this problem with the MacBook Air too.
Some choose to shield the USB 3 cable with tinfoil. Personally I opted to connect a USB 3 Ethernet interface to the hub and use wired Ethernet when I use the hub.
We got to know about the design change when a rather large and sprawling local leisure centre reported that often when someone used their walkie talkie near a PC, the screen filled with random characters and sometimes the dot matrix printers would 'go haywire' (CTRL-P = Print what's displayed on the screen).
In effect, the rf signal from the walkie talkies was 'mashing the keys'.
The immediate fix was to swap in some older keyboards, the longer fix was down to Olivetti using better shielding and some appropriately-placed capacitor decoupling on the power and signal lines.
Havnm't heard that brand in a while! I now remember I still have an 486 DX4 100MHz Olivetti laptop. Which is kind of pink-red-brownish.
wrapping 3rd party adapter in tin foil actually show much better speedtest results when connected, then without the foil.
I once heard something about that frequency working better with water molecules, but after looking it up I think it's a myth.
Don't use a cheap cable, use one rated for 4k, and see if that helps.