The following issue has been reported on Stack Overflow:
https://stackoverflow.com/questions/73333234/balena-enginer-docker-error-while-copying-file-to-container
It appears that the behaviour of the cp command has changed with FW 2022.6, when trying to copy a file into a container.