The reason why this happens is that the module path isn't extended or extended to the wrong™ path.
https://aur.archlinux.org/cgit/aur.git/ … idia-340xx
ls /usr/lib64/nvidia/xorg /usr/lib64/xorg/modules
pacman -Qi libglvnd
and please post your xorg log.
Possible cause is https://wiki.archlinux.org/title/NVIDIA#Early_loading (though there's probably no nvidia-drm module) or alternatively you wrote a static server config that shadows the configlet and doesn't extend the module path.
In any event: moving around libraries is always a bad idea and you need to pause and rethink whenever you arrive at that point.
1) mv /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.so.back
2) cp /usr/lib/nvidia/xorg/libglx.so /usr/lib/xorg/modules/extensions/libglx.so
]]>