How to debug hass shutdown?

I have hassio running on Intel Nuc. It’s been pretty stable for a while, however, 3 days ago, it started shutting the whole machine off overnight. Logs don’t seem to persist over shutdown, so I can’t even check if there are any error message from before the shutdown. The only thing that I can try blaming it on is possibly Samba Backup add-on that runs every night at 4AM. However, as far as I can see, snapshots are being created every night and uploaded to my Synology correctly. I haven’t done any major changes in the last 3 days, just normal upgrades of components and add-ons.
Any help with figuring this out would be appreciated.