i use a custom modpack with over 370 mods loaded in game, and 301 mods loaded outside game (idk which one is correct tbh) and it does not have memory leak and anything, but this does not help tbh
lets go to the topic:
mixing optifine with embeddium = crash
most probable mods also to crash too:
-epic fight: too detailed animations for low gamma PCs
-embeddium++ is a bullshit, just dont use it, ok?
and more errors you commited
remember one thing for modpack building:
mods have compatibilities, is like one child might fight with another, so you cant mix then together in a room
out of the example, it means you cant mix 2 mods or more together, they will do your MC boom or crash, rtememberknow all compats please, or the enough for your modpack
another hint:
for error codes:
error -1:
cheack crash log on places like “stacktrace”, there may be useful info, or more places also, search things on text editor like “[ERROR]”, or simply “error”
-another hint, if its error 1, just go to latest.log, and cheack the same, but this time dont cheack for stacktrace, itjust does not exist
also, for the other error codes is the same, but may be a little harder, or mutch harder, depends