That's way too much for Minecraft, I would advise against over-allocation as that can also cause issues.
Is this from the output launcher? If not, make sure to enable it in launcher settings and then copy that instead.
If it is, I will need the whole thing and the crash report if it makes one. It should create one. I would also check if this issue occurs in vanilla or not.