Invalid Initial Heap Size

I have been trying to get this launcher to run properly, I have reinstalled it and 64 bit Java 8 numerous times, and I continue to have this problem.

The game is running. Please wait.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms4096M
The specified size exceeds the maximum representable size.
Process ended with code: 1

I have tried changing the maximum and minimum memory from the Launcher>Options>Java tab, and this problem persists.

If I set both to 1024MB, however, I can start the modpack, but it then crashes when I load the game due to “Insufficient memory allocated.”

please copy paste your full log to a service like http://pastebin.com and provide the link

That is the entirety of the log, I don’t know what else to do?

And now I’m using it with minimum and maximum memory of 1,024 MB, and I get this error. http://pastebin.com/emrdMkQ9

Java Version: 1.7.0_79, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation

This bit means you are running on Java 7, you need Java 8