Flatpak Steam Nvidia driver hanging on fullscreen-unredirect

Hello, when using the flatpak steam, Proton games regularly hang when unredirecting in Gnome 40. This doesn’t happen when using native Steam. In journalctl I have the following error:

May 23 11:08:37 GamingPC gnome-shell[1063]: Window manager warning: Window 0x4200001 sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
May 23 11:08:55 GamingPC com.valvesoftware.Steam.desktop[5608]: OnFocusWindowChanged to window type: k_nGameIDControllerConfigs_Desktop, AppID 413080
May 23 11:08:55 GamingPC com.valvesoftware.Steam.desktop[5608]: Controller 0 Gamepad uses xinput : true
May 23 11:08:55 GamingPC com.valvesoftware.Steam.desktop[5608]: Loaded Config for Local Override Path for App ID 413080, Controller 0: /home/user/.local/share/Steam//controller_base/empty.vdf
May 23 11:08:55 GamingPC com.valvesoftware.Steam.desktop[5608]: Controller 0 Gamepad uses xinput : true
May 23 11:08:55 GamingPC gnome-shell[1063]: Can't update stage views actor MetaWindowGroup is on because it needs an allocation.
May 23 11:08:55 GamingPC gnome-shell[1063]: Can't update stage views actor MetaWindowActorX11 is on because it needs an allocation.
May 23 11:08:55 GamingPC gnome-shell[1063]: Can't update stage views actor MetaSurfaceActorX11 is on because it needs an allocation.
May 23 11:08:55 GamingPC kernel: NVRM: GPU at PCI:0000:01:00: GPU-38399b18-17fc-b57e-cceb-9214fa0cc25b
May 23 11:08:55 GamingPC kernel: NVRM: GPU Board Serial Number: 
May 23 11:08:55 GamingPC kernel: NVRM: Xid (PCI:0000:01:00): 31, pid=7064, Ch 00000049, intr 10000000. MMU Fault: ENGINE GRAPHICS GPCCLIENT_PROP_0 faulted @ 0x1_42400000. Fault is of type FAULT_PTE ACCESS_TYPE_WRIT

The final line shows an error with the Nvidia driver. It is always the same error and happens very frequently. It doesn’t crash the system, only the game but it is extremely annoying. Here are the bug reports for the steam flatpak: Proton games crashing when Alt-Tabbing · Issue #761 · flathub/com.valvesoftware.Steam · GitHub and for mutter: Some Flatpak Steam games crashing when alt-tabbing (#1830) · Issues · GNOME / mutter · GitLab

Running games with this extension enabled solves the issue: Disable unredirect fullscreen windows - GNOME Shell Extensions but comes with performance penalties and GSYNC doesn’t work.

OS: Arch Linux
Driver: 465.31

No one have any ideas? I’ve been having this issue for months. Not sure if it is just my system or not.