Few automations gets weird names

Hello people.
I have a weird behavior of few automations.
Few automations getting name like “automation 29”, “automation 30” etc.

Image attached.

I don’t see any differences between them and any other automation I have.
I have tried to remove them, re-create them, changing their IDs, nothing helps. Just 3 automations out of almost 30 gets such names.
other automation in the same file works just fine.

What could be the problem?

PS: I’m using Visual Studio Code to create/change automations. All automations separated by groups and files

Home Assistant Version: 2023.4.2

I’ve had this sometimes editing via the UI. It seems to happen when you’re building an automation and exit without going through the normal saving/leaving procedure - say by switching to another screen in the app. My guess is that the UI does periodic saves during editing and these can get orphaned. I have been able to delete them, though.