Automation error when HA is accessed remotely

Hi , I am using remote connections via Nabu Casa and I have noticed on more than one occasion when I make an automation change/update remotely, I get an error saying
“This automation cannot be edited from the UI, because it is not stored in the automations.yaml file, or doesn’t have an ID.” with an option to migrate.

If I select migrate I get a second copy of the automation, which then doesnt seem to have the error. Yet if I access the same automation via the mobile app I dont get this problem and I never see this problem if I access when at home.

Any ideas why this happening or what I can do to stop it please ?

Many thanks
regards Andy