Thank you for that. I tried the old launcher and the bug is still there. I am using the latest Nvidia drivers for Fedora 40 (570.86.16), but this has been happening across versions. You can actually google around and find a bunch of Minecraft threads that reference the same issue.
If there's a significant distance between the java library versions, then I'll just have to swap to X11 when I want to use this app natively.
It runs just fine under Wine and Wayland, which is frustrating haha.