Minecraft crashes when I tab out and back in

Solution 1:

I think that you should change the version of the Minecraft launcher.

To do that you need to right-click Minecraft and go to properties. Then under Compatibility, you need to tick "Run this program in compatibility mode for:" right under that click and change where it says "Windows 8" to "Windows Vista".

After that the launcher may look different but it fixed the problem for me.