Issues with hassio

This custom alarm component has persistence of state through restart/reboot:

However your Pi should not be restarting when you view history. You should try to determine why that is happening. Have you tried excluding unneeded items or domains?

Yes it does.