Iirc the internal heap is not big enough to accommodate much more than what is needed by the vanilla game. NTA mentioned it on gtaforums once. Therefore memory- related problems are pretty much unavoidable unless someone figures out how to reallocate the heap at run-time.