Help please!

I was on twitch after a long break just to find out it will not allow me to play any modpacks on the twitch client.
The crash is at the launcher, it won't let me get into the main menu. it says it can not create a Java virtual machine, Invalid maximum heap size: -Xmx4829m, and it ended with a bad state (exit code 1).