ERROR: Could not determine exact tip revision of branch_name; falling back to nondeterministic checkout

We have a deployment pipeline that was working perfectly, and then all of a sudden, jobs started failing with this error message

ERROR: Could not determine exact tip revision of feature/NGDM-10183-secman-users-display-all-users-angular
Posting build status of FAILED to xxx Bitbucket (xxx) for commit id [03ef7dcxxxxxxxxxxxxxxxxxxx] and ref 'refs/heads/feature/NGDM-10183-secman-users-display-all-users-angular'

Coincidentally, a colleague found out that there was a fatal error on one of the builds that reads fatal: write error: No space left on device.

But before this, creating a new branch and running the pipeline resolved the issue temporarily.

We then increased the memory on the Jenkins server, but we still cannot successfully run the branches that were failing, but remember these were running successfully before.

Question: Is there a way we can salvage these branches or make them build successfully again? And in some cases, the branches were missing the checkout stage when run, causing the build to fail. Thanks for your help