Before making this thread, I had a total of 6 GB allocated, but as the modpack description said 4 GB, I had lowered it. It had still crashed at 6GB, and as I only have a total of 8 GB installed, I cannot easily upgrade it, especially as I am using a laptop rather than a desktop.