Hi,
On a fresh run of the GAP interface, Sage caches a GAP workspace which loads every single GAP package on the system. While this might be OK with Sage's trimmed-down version of gap_packages, if using a system GAP install with all optional packages installed this can take a massive amount of memory (~1GB with all packages included in the 4.11.1 tarball), which in many casses surpasses the default gap_memory_pool_size value, causing crashes. This will become a common issue once #29644 is merged.
I don't think it is realistic to expect a user to need every single optional package. Should this preloading be limited to a selected number of packages (eg. those loaded in GAP by default)? Or just let users load the packages they need on demand?