Home Assistant Hangs after 1-2 hours fixed

I’m running HA in VirtualBox on windows 11

  • Core2024.10.1
  • Supervisor2024.10.2
  • Operating System13.1
  • Frontend20241002.2

I recently added ESPhome for some new sensors. The code compilation was slow , so I changed from 1 core to 2 cores in virtualbox. Code compilation was faster but Home Assistant completely freezes after 1-2 hours. Needs forced power off in virtualbox to fix. After a while, I figured out changing it back to 1 core was the solution. Up time is at 1 week now.