Home assistant keeps on restarting due to Out Of Memory errors

I’m running my Home Assistant on a virtualbox on Windows.

The frontend been restarting every 20 mins or so. These are the logs I found on console:

Anyone knows what’s the solution to this?