World of Goo 2 crashes with NVIDIA GPU

lutris --submit-issue : lutris -d

Native World of Goo 2 fails to launch when using NVIDIA RTX 4050 Laptop GPU, while the intergrated Intel GPU works fine. Other Lutris settings, i.e. gamescope, have no effect on this. Game log:

Started initial process 28615 from gamescope --prefer-vk-device 10de:28a1 -w 1920 -h 1080 -f -- game-performance ./World_of_Goo_2.AppImage
Start monitoring process.
[gamescope] [e[0;34mInfoe[0m]  e[0;37mconsole:e[0m gamescope version 3.14.29
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m selecting physical device 'NVIDIA GeForce RTX 4050 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m physical device supports DRM format modifiers
[gamescope] [e[0;34mInfoe[0m]  e[0;37mwlserver:e[0m [backend/headless/backend.c:67] Creating headless backend
[gamescope] [e[0;34mInfoe[0m]  e[0;37mxdg_backend:e[0m Seat name: 
[gamescope] [e[0;31mErrore[0m] e[0;37mvulkan:e[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [e[0;31mErrore[0m] e[0;37mvulkan:e[0m vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m supported DRM formats for sampling usage:
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   AR24 (0x34325241)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   XR24 (0x34325258)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   AB24 (0x34324241)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   XB24 (0x34324258)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   RG16 (0x36314752)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   NV12 (0x3231564E)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   AB4H (0x48344241)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   XB4H (0x48344258)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   AB30 (0x30334241)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   AR30 (0x30335241)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvulkan:e[0m   XR30 (0x30335258)
[gamescope] [e[0;34mInfoe[0m]  e[0;37mwlserver:e[0m Running compositor on wayland display 'gamescope-0'
[gamescope] [e[0;34mInfoe[0m]  e[0;37mwlserver:e[0m [backend/headless/backend.c:17] Starting headless backend
[gamescope] [e[0;34mInfoe[0m]  e[0;37mwlserver:e[0m Successfully initialized libei for input emulation!
[gamescope] [e[0;31mErrore[0m] e[0;37mwlserver:e[0m [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
[gamescope] [e[0;34mInfoe[0m]  e[0;37mwlserver:e[0m [xwayland/server.c:107] Starting Xwayland on :2
[gamescope] [e[0;34mInfoe[0m]  e[0;37mpipewire:e[0m stream state changed: connecting
[gamescope] [e[0;34mInfoe[0m]  e[0;37mpipewire:e[0m stream state changed: paused
[gamescope] [e[0;34mInfoe[0m]  e[0;37mpipewire:e[0m stream available on node ID: 74
[gamescope] [e[0;34mInfoe[0m]  e[0;37mxwm:e[0m Embedded, no cursor set. Using left_ptr by default.
[gamescope] [e[0;34mInfoe[0m]  e[0;37mvblank:e[0m Using timerfd.
[gamescope] [e[0;34mInfoe[0m]  e[0;37mxdg_backend:e[0m PreferredMetadata: Red: 0.5879 0.36426, Green: 0.35254 0.57128, Blue: 0.1621 0.12012, White: 0.30468 0.32128, Max Luminance: 200 nits, Min Luminance: 0 nits, Max Full Frame Luminance: 200 nits
[gamescope] [e[0;34mInfoe[0m]  e[0;37medid:e[0m Patching res 800x1280 -> 1920x1080
Error getting buffer
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  208
  Current serial number in output stream:  208
[gamescope] [e[0;34mInfoe[0m]  e[0;37mlaunch:e[0m Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Monitored process exited.
Initial process has exited (return code: 0)
All processes have quit
Exit with return code 0

I get the same issue when launching the game directly as an AppImage:

/usr/bin/AppImageLauncher: /lib64/libcurl.so.4: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so)
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  213
  Current serial number in output stream:  213

Do let me know if you find a solution here. For some reason this worked when I was using Nouveau, but not when I use the actual Nvidia drivers. (I don’t want to use Nouveau because the performance is not good enough in many other games I play.)