I've recently Installed a mod on my server: Pam's harvest craft.
I got the NEI to easily check crafting recipes. When I joined the server and attempted to open my inventory, the game crashed. It flat out crashed. No error log. It just closed the entire game.
My minecraft version is 1.12.2
EDIT: I found out it doesn't have to do with the NEI. I took the mods out of the mod folder and I tried to open my inventory again, It still crashed my game.