You would ideally want more RAM, unless it is a one-off ledger-state dump.
Yes - it is a memory expensive task, and bigger the chain gets, larger the size of ledger-dump will likely be (as more folks register pools, keys over time). The fact that it reached OOM killer means you are not sized enough to run that command.