Weird artifact rectangle

so only touchpad, keyboard and the prime switcher?

Yes, only three configs

prime-switcher --detect advice to switch to nouveau-reverse-prime

ok i never heard about the prime switcher config, so delete it, if you dont know how, post the exact path here, i give you the command

it worked

so you booted normally?

Yes, I just switched to nouveau-reverse-prime

dont switch to anything, i wanted you to test on intel graphics if you have the artifacts also there…

so, just rm /etc/X11/xorg.conf.d/90-prime-switcher.conf?

yes remove the prime swithcer conf, then reboot and test if you have artifacts

now reboot?

if you removed it, yes reboot and test

no artifacts

so go to system settings/hardware configuration and click on auto install proprietary driver, when its done reboot, and test again

no artifacts

ok, post output from mhwd -li again

mhwd -li                                                                                       ✔ 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
         network-r8168            2016.04.20                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

ok looks good, now you can test artifacts with prime-run command… for example:
prime-run firefox

no artifactss

so no artifacts on intel also no artifacts when you run programs on nvidia with prime-run… it looks like its fixed… also post output from:
find /etc/X11/ -name "*.conf"