In one of the .ini files, I believe it’s engine defaults, there is a setting you can change for allocated ram, there’s a tutorial/thread on here somewhere
Edit: if you Google “allocate more ram for unreal engine” an AI solution should be at the top with step by step instructions