When playing modded Minecraft, doesn't matter what version, forge, fabric, quilt, or even if any mods are used, Minecraft crashes instantly, even faster than Alt + f4, and comes up with the exit code 77. After, the game cannot load, and the crash screen comes up a couple seconds after pressing play, without any sign of Minecraft even starting to load. This continues, even after restarting, shutting down, and even using a different modpack or mod loader. But it resolves itself the next day, until it crashes the same day, if playing. I had the same problem using a laptop, and now have switched to a pc, and still have the same problem. Looking through the logs and comparing to a friend's, it looks like for some reason, modded Minecraft is loading as a server rather than a local app. I do not have this problem with vanilla. I have researched as much as I can with this issue, however all similar issues have been resolved, and all solutions do not seem to solve this issue.
We don't accept issues related to modified versions of the game. Report this to the mod authors.