Well. It was backup that was messing up my home assistant. Now backup is disabled and home assistant survives night. But i love daily backup. Maybe to schedule home assistant restart after backup using cron.
As stated above, you could exclude HA from being stopped during backup.