Blocks – Bitcoin Core 27 Initial Sync Blockchain Error

I sent it here from reddit https://www.reddit.com/r/Bitcoin/comments/1d5wgma/bitcoin_core_27_initial_sync_blockchain_errors/.
I did some research and checked the debug.log and I got the following error twice: 2024-06-01T20:22:08Z Fatal LevelDB Error: Corruption: 18 files are missing. Example: /run/media/ml/ssdfullnode/btc/datadir/blocks/index/000470.ldb
I’ve never had a power outage and I’ve always shut everything down properly and typed “sync” in my shell.
Then I tried both -reindex and -reindex-chainstate, but bitcoin-qt crashed without any message and showed this error in debug.log.
2024-06-01T22:23:20Z Error: Not enough memory. Quit.
Then I found a post by master jonasschnelli who wrote using dbcache=20 maxconnections=3 par=2 maxmempool=50.
yet bitcoin-qt still crashes due to lack of memory. I checked the ram without opening any other applications, it goes up to 9 GB out of 16 GB and crashes everywhere already 2 GB is enough to run btc core 27.
Is there a solution to my trapped misery?