After upgrading to HA 50.2, I suddenly have started getting an invalid config error on my automations. I have not changed the automations at all since v50.
I went into the automation.yaml file and found that my formatting had been corrupted. There were loads of spaces and also / and \ inserted all over the place…
I have loaded a previous backup, but managed to sift through the 120 odd automations and found the offending entries.
It would be good to have a exact refernce to the errors in the check config log. At present all you can see referenced is the line where the !include in the config.