Allocate more RAM to the game, this is not an Aristois issue. It will most likely also happen on vanilla. World generation changes in 1.18 have significantly increased the size of chunks in the world, which in turn increases the resources needed to run.