Mate, I tried something in here and it worked, I don't know how, but it did.
First thing to do. Open the Curseforge Launcher and click on Play, on the Modpack you are trying to Run.
On the Launcher screen (this one: ) click on "Installations" and then Edit it.
Click on "More Options" and redefine the JVM Arguments on there. Click Save and try to launch it.
For me it worked, idk if it will work for you...