1 FPS and basically no GPU utilization in some Steam games

I need to ask, because I have tried everything and nothing seems to work. Some Proton games have the issue that they are running at 1 FPS with 0-2 % GPU utilization. The games that have that problem are F1 22 and F1 2020. Both run fine on Arch Linux but not on NixOS. Phasmophobia on the other hand has some major stutter here and there but eventually they iron out and then the game runs perfectly fine. What am I missing here?

I tried removing old generations, deleting .local/share/Steam and I found one thing in the forum, but that doesn’t help me as it had something to do with NVIDIA GPUs and I have an AMD GPU.

I tried running steam via the terminal and there I found a couple of errors, but I can’t seem to figure out it that’s the cause of my issue and if so, how do I fix it.

Error Log:
ERROR: ld.so: object ‘/home/jerry/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object ‘/home/jerry/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object ‘/home/jerry/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object ‘/home/jerry/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pressure-vessel-wrap[20109]: W: Found more than one possible libdrm data directory from provider
/nix/store/w404s6jvsybzc42xmximnadswyr6km8c-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so: undefined symbol: g_hash_table_get_keys_as_array
Failed to load module: /nix/store/w404s6jvsybzc42xmximnadswyr6km8c-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so

EDIT 1: I should mention my NixOS version. I use NixOS 22.11 with no binaries from Unstable.