This might be a bug not related to z-wave - I had some very very weird issues too with automations not working and sometimes claiming that a automation that was not even on file anymore had caused the problem.
I even experienced after a 5. reboot of the entire machine that the log again wrote errors and then wrote my entire config and automations out correctly (in the log - never seen that before) and then wrote it out again in a very wrong syntax for some reason - and of course gave a sh!t ton of “what is that?, what is this?” type comments in the config
And now … everything might be normal, only my RF switches don’t work jet