Remove the failing post-code-deploy hook from the project codebase as it is not supported on Acquia Cloud Site Factory. A list of Acquia Cloud Site Factory supported hooks can be found in Hooks in Acquia Cloud Site Factory.
Cause:
BLT is known to regenerate hooks on when updating it, the hook was likely accidentally committed.
Failing Acquia Cloud Site Factory deployments after a BLT update | Acquia Product Documentation
Site Factory
Failing Acquia Cloud Site Factory deployments after a BLT update