Home Assistant crash

Hello everyone,

I have my HA installed on a raspberry PI 3B. My homeassistant crashes randomly and I cannot reach it until I hard reboot the PI (by plug off - on). Thus, I lose all the logs (I guess?) and cannot figure out what went wrong there. Is there a way to figure this out?

Regards,
Ersin

a bad sd card is my guess.