have you tried this?
Avoid screen tearing in KDE (KWin)
/etc/profile.d/kwin.sh
export __GL_YIELD=“USLEEP”
Also if the above doesn’t help, then try this:
/etc/profile.d/kwin.sh
export KWIN_TRIPLE_BUFFER=1
Do not have both of the above enabled at the same time. Also if you enable triple buffering make sure to enable TripleBuffering for the driver itself
from: NVIDIA - ArchWiki