Game crash
-
firstly, that's way too much ram to allocate (unless running 200+ mods with high textures/shaders). 3-4G is plenty
your issue is caused by OptiFine: https://discuss.aristois.net/topic/13/how-to-uninstall-optifine-optifine-error-on-startup