Macbook pro crashes occasionally on dual monitor
Upgrade your NVIDIA driver according to your OSX version: http://www.insanelymac.com/forum/topic/306535-nvidia-web-driver-updates-for-el-capitan-update-06232016/
After restart you'll see an NVIDIA icon on top right of your desktop
Chose 'OS X Default Graphics Driver'