Bitcoind restarting

Hi everyone, I am using a VM (KVM) on CachyOS and for storage I am using a nvme WD_BLACK SN850X 4T.

My VM
2 Processors
4 GB Memory
2T Virtual Disk

I managed to sync the blockchain without problems, but when I try to sync the electrum server things don’t go well. I noticed the Electrum was restarting, then I checked the bitcoin core and it was down. Apparently it was in restart loop state.

Is there anything I can do to alleviate things for core? Maybe it’s too much IO?

Below is the log:

2025-11-27T19:54:29+01:00  2025-11-27T18:54:29Z New outbound-full-relay v1 peer connected: version: 70016, blocks=925456, peer=6
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z [error] ReadBlockFromDisk: Deserialize or I/O error - AutoFile::read: end of file: iostream error at FlatFilePos(nFile=5193, nPos=38803503)
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z [error] A fatal internal error occurred, see debug.log for details: Sync: Failed to read block 00000000000000000000be4757ac50220a9db461b57083cfef9bbc2a59fe677a from disk
2025-11-27T19:54:31+01:00  Error: A fatal internal error occurred, see debug.log for details: Sync: Failed to read block 00000000000000000000be4757ac50220a9db461b57083cfef9bbc2a59fe677a from disk
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z tor: Thread interrupt
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z Shutdown: In progress...
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z torcontrol thread exit
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z addcon thread exit
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z basic block filter index thread exit
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z msghand thread exit
2025-11-27T19:54:31+01:00  2025-11-27T18:54:31Z net thread exit
2025-11-27T19:54:31+01:00  Error updating blockchain info: error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
2025-11-27T19:54:31+01:00  
2025-11-27T19:54:31+01:00  Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
2025-11-27T19:54:31+01:00  Use "bitcoin-cli -help" for more info.
2025-11-27T19:54:31+01:00  
2025-11-27T19:54:31+01:00  Error updating network info: error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
2025-11-27T19:54:31+01:00  
2025-11-27T19:54:31+01:00  Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
2025-11-27T19:54:31+01:00  Use "bitcoin-cli -help" for more info.
2025-11-27T19:54:31+01:00  
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z opencon thread exit
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat started
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.00s)
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z scheduler thread exit
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z Writing 333 mempool transactions to file...
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z Writing 0 unbroadcast transactions to file.
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z Dumped mempool: 0.000s to copy, 0.004s to dump, 328142 bytes dumped to file
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z Flushed fee estimates to fee_estimates.dat.
2025-11-27T19:54:34+01:00  2025-11-27T18:54:34Z Shutdown: done
2025-11-27T19:54:50+01:00  Error updating blockchain info: error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
2025-11-27T19:54:50+01:00  
2025-11-27T19:54:50+01:00  Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
2025-11-27T19:54:50+01:00  Use "bitcoin-cli -help" for more info.
2025-11-27T19:54:50+01:00  
2025-11-27T19:54:50+01:00  Error updating network info: error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
2025-11-27T19:54:50+01:00  
2025-11-27T19:54:50+01:00  Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
2025-11-27T19:54:50+01:00  Use "bitcoin-cli -help" for more info.
2025-11-27T19:54:50+01:00  
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Bitcoin Core version v28.1.0 (release build)
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z parameter interaction: -externalip set -> setting -discover=0
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Script verification uses 1 additional threads
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Using the 'x86_shani(1way,2way)' SHA256 implementation
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Using RdSeed as an additional entropy source
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Using RdRand as an additional entropy source
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Default data directory /root/.bitcoin
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Using data directory /root/.bitcoin
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Config file: /root/.bitcoin/bitcoin.conf
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Config file arg: avoidpartialspends="1"
2025-11-27T19:54:50+01:00  2025-11-27T18:54:50Z Config file arg: bind="0.0.0.0:8333"