my computer went to sleep and then I turned it back on and now it works for anyone who has this issue (it also could have been fixed by curseforge devs)
I am not getting this error every time I start minecraft:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. program will exit