Home assistant keeps locking up

So im runnning on virtual box windows machine and Im trying to find out why recently HA is just stopping working at random. It can be working fine no changes made then just stop responding. If I restart the machine it starts working again as the restart is happening ill here an alexa announcement that has been triggered by an automation so I figure something on the windows machine may be the cause but I have no idea how to track it.
I tried to log critical errors but the log is gone after restart. Im pretty new to all this but its been running fine up until recently and now im lucky if it goes 12 hours without needing a restart.
How would I go about debugging this one please. I tried to get in via samba to see if i could access logs that way but samba also doesnt respond.

Happy to share any info needed youll just have to give me a clue what you need and maybe how to get it. Im more than willing to learn and happy to figure this out for myself but the issue is I have no idea where to start here.
Its running on windows 10 machine both windows 10 and HA are upto date. I have HA installed on an SSD using two cores of an i7 4790k its got 2 gig of ram from 16 on the host and as far as I can tell it never really get taxed too heavily

edit
Ive made sure virtual box is upto date and ive upped the ram to 4 its been fine on 2 until very recently but hopefully i will see a change

edit
Its been a couple of days and no crashes as yet but ive had this before so I guess only time will tell.
Usually i have virtual box on hidden headless mode and these last couple of days it hasnt been. I may put it into headless again and see what happens.