CI/CD Pipeline not working, even with commits that previously deployed successfully

Replace this template with your information

Describe your question in as much detail as possible:

Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /home/gitlab-runner/builds/yCm3zoNw/0/matt.s/hyundai-genesis-open-2022-fe/.git/
error: Could not read 6afd20b40bef22f45e83d3205b3d512c34c4bc05
error: Could not read b5afbf6f738a21c3c87666bd4220b081f947e04f
error: Could not read 7a0c26512aca7fc0cf77aa1c233a2843262283dc
fatal: unresolved deltas left after unpacking
fatal: unpack-objects failed
Cleaning up project directory and file based variables
ERROR: Job failed: exit status 1
before_script:
#  - apt-get update -qq
#  - apt-get install -qq git
# Setup SSH deploy keys
#  - "which ssh-agent || ( apt-get install -qq openssh-client )"
#  - eval $(ssh-agent -s)
#  - ssh-add <(echo "$SSH_PRIVATE_KEY")
#  - mkdir -p ~/.ssh
#  - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  - npm install

stages:
  - test
  - deploy

deploy:
  stage: deploy
  environment:
    name: production
    url: https://example.com
  script:
    - ssh ubuntu@${PRODUCTION_SERVER_IP} "cd ####-api; . ~/.bashrc; git checkout master; git pull; npm install; /usr/bin/pm2 restart server"
    - echo "Building static export"
    - cd client
    - npm install
    - CI=false npm run build
    - echo "Deploying site to Production S3 Bucket {$PROD_AWS_BUCKET_NAME}"
    - npx gulp deploy --bucket $PROD_AWS_BUCKET_NAME --cloudfront $PROD_AWS_CLOUDFRONT
  tags:
    - Node
  only:
    - master

I’ve been going through trying to find someone running into this issue, and I’ve found similar things

bash - gitlab runner throws "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" at the end - Stack Overflow

Windows Shell Local Runner - Cleaning up file based variables ERROR: Job failed: exit status 1

Gitlab Runner on Windows fails to check out repository from time to time (#28907) · Issues · GitLab.org / gitlab-runner · GitLab

But none of these are my actual problem, I made no changes to the pipeline so I am really at a loss for what could be wrong