Try these steps:
1) Do you have application crash dump files you can send us? If so you can zip up the file as it should compress well and send it off to driverfeedback@nvidia.com. If you have a full dump file, you can upload to a file sharing site and send us the URL to the file
2) Anyone with this issue who lives near our Santa Clara office, if you would be willing to bring in your system to have our software team try to investigate this issue, please let me know.
3) If you live in the USA and would be willing to loan us your graphics card, please email me at driverfeedback@nvidia.com. We would pay for all shipping costs and also provide you with a loaner card once we receive your card.
4) If you have any instructions or helpful information on how to reproduce this issue, please share your finding. Include your system specs with description/instructions.
-NVIDIA
Or:
I think I have found a fix for me in minecraft with shaders. What I did was go into the minecraft launcher, clicked edit profile, and at the bottom of the menu, put a check in the JVM Arguments box. After that, find Xmx1G in the text box, it is at the start. Edit the 1G to Something like 2G, 3G or 4G. From my knowledge this increases the amount of RAM minecraft uses. I put 4G because I have lots of RAM, but if you have less RAM, put it to something like 2G or 3G.
Hope This Helps!
Or:
My solution: revert to driver v340.52
I normaly keep my drivers up-to-date - BUT: a while ago, I started to have the same problems as described in this thread: random OpenGL error 8/9. Sometimes Minecraft runs fine, sometimes it would crash after a few minutes.
After some testing I found out that flash/youtube was causing this problem. I doesn't matter if youtube is actually running - if the browser is still open after playing, Minecraft will crash. First solution: close any opened browser, start MC... works, but not very usefull.
Since this problem started to appear some months ago and my hardware didn't change, I started to revert to older graphic driver version. The solution for me was to install Version 340.52 - now I can use Youtube & MC at the same time again.
Hope this helps.
Source: https://forums.geforce.com/default/topic/800086/geforce-900-series/nvidia-opengl-driver-crash-error-code-8/3/