Gitlab runner unauthorized: HTTP Basic: Access denied

I have a CICD pipeline for building containers and uploading it to container registry but sometimes I get this error unauthorized: HTTP Basic: Access denied.
Screenshot from 2024-12-02 10-10-00

But when I retry again it works fine. Other stages run well without the error.