Let me guess: nvidia? If yes, then the proper fix for that is cooking here: cmd/snap-confine: do not include libglvnd libraries from the host system by jhenstridge · Pull Request #11023 · canonical/snapd · GitHub
Here are some instructions on how to test this fix: EGL-using snaps on impish seem to be broken when using the Nvidia proprietary driver - #59 by jamesh