Home assistant restarts itself every few minutes

Hi fibane,
You might have an integration that is not behaving.
Most all of those have been fixes at this point, so if you update all of those, you may be OK.
This link if you want to find out exactly.:
2024.5+: Tracking down instability issues caused by integrations.