The best thing I ever did was use Nvidia prime offloading to move everything to my integrated GPU and have only select GPU intensive applications (like games, video editing) interact with Nvidia.
Never had to deal with weird graphics bugs after that.
The real cheat sheet: