Most modern repacks feature a small checkbox on the very first screen of the setup wizard that reads:
: Many repack installers (like FitGirl Repacks) have a checkbox at the start to "Limit RAM usage to 2GB/3GB." Checking this can prevent the installer from crashing on systems with 8GB or 16GB of RAM.