"error: unable to write sha1 filename" when trying to push my code to balena

I have created a new Balena Application and moved my device to this new Balena application.
I also created a new branch dev_pa starting from my master branch and copy pasted (locally) the same small change to my docker-compose.yml file.

When I tried to push this local branch to my new Balena application then I get a different error:
see "[Error] Could not parse compose file" when pushing a local branch to Balena

What is strange that pushing the same changes from the master branch doesn’t give an error (see also "[Error] Could not parse compose file" when pushing a local branch to Balena)