Overrides Chicory memory factory.
By default it will be used ByteBufferMemory with ExactMemAllocStrategy.
See: https://chicory.dev/docs/advanced/memory