Prismlauncher: GLFW error 65539: Invalid window hint 0x00020010

When I try to run Minecraft version >= 26.1 with native Wayland via Settings → Minecraft → Tweaks → Native Libraries → Use system installation of GLFW, I get one of the following errors:
Vanilla 26.1.2:
GLFW error collected during initialization: [GLFW 0x10003] Invalid window hint 0x00020010
Fabulously Optimized 13.4.0 for 26.1.2:
com.mojang.blaze3d.platform.Window$WindowInitFailed: GLFW error 65539: Invalid window hint 0x00020010
Vanilla 26.2 no obvious error.
Fabulously Optimized 14.0.0-beta.7 for 26.2:
com.mojang.blaze3d.platform.Window$WindowInitFailed: GLFW error 65539: Invalid window hint 0x00020010

Without this tweek, Minecraft runs via xwayland-satellite 0.8.2 on my Niri 26.04:

xwininfo: Window id: 14680071 "Minecraft* 26.2 - Singleplayer"

  Absolute upper-left X:  1080
  Absolute upper-left Y:  240
  Relative upper-left X:  1080
  Relative upper-left Y:  240
  Width: 3840
  Height: 2160
  Depth: 24
  Visual: 0x42
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0xe00006 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1080+240  -640+240  -640-0  +1080-0
  -geometry 3840x2160+1080-0

NixOS 26.11 (Zokor), Linux 6.18.48, NVIDIA GeForce RTX 2080 (Driver Version: 595.91.07), Prism Launcher 11.0.3.

For completeness, here are the logs of a successful launch:
Vanilla 1.21.11
Fabulously Optimized 12.3.0 for 1.21.11

I think the problem is in glfw-minecraft in nixpkgs unstable, which only has version 3.4 from February 23, 2024, although the latest version is 3.5.1 from July 31, 2026.

Regarding __GL_THREADED_OPTIMIZATIONS=0 and NVIDIA, yes, this environment variable really should be set to avoid GLFW error 65544: EGL: Failed to clear current context: An EGLDisplay argument does not name a valid EGL display connection, as stated in the NixOS Wiki. But this error appears after my 65539 and only if my new error isn’t present initially.

I also tried using graalvmPackages.graalvm-oracle_25 version 25.0.3, but it didn’t change anything:
Vanilla 26.1.2 graalvm-oracle:
GLFW error collected during initialization: [GLFW 0x10003] Invalid window hint 0x00020010
Vanilla 26.2 graalvm-oracle no obvious error.
Fabulously Optimized 13.4.0 for 26.1.2 graalvm-oracle:
com.mojang.blaze3d.platform.Window$WindowInitFailed: GLFW error 65539: Invalid window hint 0x00020010
Fabulously Optimized 14.0.0-beta.7 for 26.2 graalvm-oracle:
com.mojang.blaze3d.platform.Window$WindowInitFailed: GLFW error 65539: Invalid window hint 0x00020010

I furthermore tried changing the Graphics API from Prefer OpenGL to Prefer Vulkan. It works, but only with Xwayland; there’s an error with glfw-minecraft:
Vanilla 26.2 Xwayland success.
Vanilla 26.2 Wayland no obvious error.
Fabulously Optimized 14.0.0-beta.7 for 26.2 Xwayland success.
Fabulously Optimized 14.0.0-beta.7 for 26.2 Wayland:
com.mojang.blaze3d.platform.Window$WindowInitFailed: GLFW error 65539: Invalid window hint 0x00020010

I forgot to add that I also use noctalia-shell 4.7.7, in case that affects anything.

Here is the output of niri msg windows, if it is related to window positioning, then it is the same for successful 1.21.11 with native Wayland or 26.1.2 / 26.2 via Xwayland.

Window ID 37:
  Title: "Minecraft 1.21.11"
  App ID: (unset)
  Is floating: no
  PID: 17520
  Workspace ID: 6
  Layout:
    Tile size: 1256 x 1378
    Scrolling position: column 2, tile 1
    Window size: 1256 x 1378
    Window offset in tile: 0 x 0
Window ID 42:
  Title: "Minecraft 26.2"
  App ID: "Minecraft 26.2"
  Is floating: no
  PID: 1928
  Workspace ID: 6
  Layout:
    Tile size: 1256 x 1378
    Scrolling position: column 2, tile 1
    Window size: 1256 x 1378
    Window offset in tile: 0 x 0