Capture the exact deployment id printed by the original deploy command, character for character, without truncation.

Confirm the project and team or account scope on the failing call matches the scope that created the deployment.

List recent deployments for that project and find the id in the list.

If the id is absent, check whether the original deploy actually finished creating a deployment or failed earlier at build or upload.

Retry the original operation with the verified id and scope.