when ever I try to run minecraft 1.12.2 it crashes and says The crash be caused by an invalid java runtime configuration .check any custom configuration settings. exit code 1
my logs are
14:54:39.447
Preparing to launch minecraft client for forge-14.23.5.2859
14:54:39.674
Have local file D:\curseforge\minecraft\Install\versions\1.12.2\1.12.2.jar but don't know what size or hash it should be. Have to assume it's good.
14:54:40.368
Minecraft client forge-14.23.5.2859 is ready to start.
14:54:40.368
Starting!
14:54:40.727
Version does not support log configuration, will assume one plaintext entry per line
14:54:41.063
Invalid maximum heap size: -Xmx4096m
14:54:41.063
The specified size exceeds the maximum representable size.
14:54:41.063
Error: Could not create the Java Virtual Machine.
14:54:41.064
Error: A fatal exception has occurred. Program will exit.
14:54:41.067
Process crashed with exit code 1