What sort of AP are you using? How are your channels configured?
That both windows and ubuntu do it on the same system, seems like the AP and Wireless card aren’t playing nicely. What wireless nic is in it? I’d make sure it’s got latest firmware, kernel, etc, but if still so, maybe look at your AP.
You mention the framework forum, their use of mediatek chips was somewhat nefarious for how bad they were, most replacing them with an Intel nic as a fix, so ymmv with the chip, and usually pretty easy/cheap to replace if you had to.
Make sure you don’t have anything like roaming enabled on the AP, if just wpa2-psk, you don’t need it with 1 or 10 ap’s, and also make sure any band steering is off. I just had a customer with Cisco/Meraki frankenstein they do now that their AP’s were misbehaving (read: bug) and enabling client load-balancing even with my disabling it it administratively that was causing massive de-auths to clients trying to move them around. Sometimes things like 802.11k/v/r causes weirdness, keep them disabled at home unless you know what you are doing and why you want them.
Otherwise just make sure you’re using as open a channel as possible (only 1/6/11 for 2.4ghz), and ensure you’re only enabling 20mhz channels (no multi-channel/mimo/bonding/whatever-they-call-it), particularly in a crowded apartment.
Do yourself a favor and download a wifi scanning app for your phone or linux and see what channels are least used, particularly 5ghz where you have 11 options instead of 3. This is a good read about your wireless channels and what they do. List of WLAN channels - Wikipedia
If all that still doesn’t help, I’d install kismet and start sniffing wireless frames to see what is causing your radio to de-auth and not re-auth.
Depending where you’re at, I’ve been recommending people start moving to 6ghz with wifi6e(not wifi6) or wifi7, as it’s not overused as 2.4 or 5ghz spectrums, only some countries make that difficult with regulatory concerns, but most allow for it.
If not, I’d probably just buy a used a 6ghz AP and nic from somewhere else and hope your local FCC doesn’t come knocking with antennas in hand and a foul look on their face.