I had the same problem!
Make sure you're not setting it to 8GB in the minecraft launcher...the curse/twitch client overrides it with whatever is set in the client's settings!
In the client, go to settings > Minecraft and increase the slider for maximum memory allocation under Java Settings!
Hope this helps! :D