Error state VM auto restart

I am running a couple of windows VM, sometimes one VM will go into error state.
usually I will incus stop vm-name --force and incus start vm-name.
but is there a config that will auto restart error state VM?