Extremely Slow Performance when External monitor is attached

I’m using Archlinux with kde-plasma on a laptop with hybrid graphics, clean install with everything updated, latest nvidia proprietary drivers 525.89.02 (also happened on previous ones). The last time hybrid graphics worked with external monitor was on the 520.56.06 driver, since then every nvidia driver update has caused this issue. The laptop is an Lenovo Legion 5i with a GTX 2060. Whenever I connect an external monitor to the laptop, the entire desktop becomes unusable. This happens on Wayland and X11. Any ideas of what it could be?

I cannot find the /var/log/nvidia-installer.log