Match the exact Java Edition error and platform before changing the game installation.
1 guide
Match GLFW 65542 to Minecraft Java Edition’s OpenGL message, identify the display adapter and use the supported Windows or manufacturer driver route.