This could be the GPU getting ready to fail or it could be a software glitch. Please follow the directions below so we can look for any obvious issues.
Please post an EtreCheckreport of your system. We can then look for obvious issues. Please click the link, download the app and run the report. Once you have the report, please copy and paste it as your reply to this post.