Can't push to Dockerhub "sometimes" - requested access to the resource is denied

Hi!

I’m pushing my docker images to dockerhub using the docker plugin.
This worked fine til now, but now after I did some changes to the app it doesn’t seem to work no more.
I can push my node.js backend fine, but my nuxt.js frontend take quite some time to build (small busy no ssd server, can take up to an hour for some reason sometimes).
I’m getting this error then:

denied: requested access to the resource is denied

My drone-ci config for the frontend and the backend is exactly the same. Backend is working fine as said…
Could it be that due to the long build time I’m getting signed out of docker?

Here is my config:

kind: pipeline
name: default

steps:
- name: publish_api
  image: plugins/docker
  settings:
    repo: wugge/wug.ge-api
    tags: [ "${DRONE_COMMIT_SHA:0:7}","latest" ]
    username:
      from_secret: docker_username
    password:
      from_secret: docker_password
    dockerfile: 'docker/api/Dockerfile'
  when:
    branch:
      - main
- name: publish_frontend
  image: plugins/docker
  settings:
    repo: wugge/wug.ge-frontend
    tags: [ "${DRONE_COMMIT_SHA:0:7}","latest" ]
    username:
      from_secret: docker_username
    password:
      from_secret: docker_password#
    dockerfile: 'docker/frontend/Dockerfile'
    context: 'frontend'
  when:
    branch:
      - main
- name: deploy
  image: docker/compose
  when:
    branch:
      - main
  volumes:
    - name: docker_sock
      path: /var/run/docker.sock
  commands:
  - docker-compose -f docker-compose.prod.yml down && docker-compose -f docker-compose.prod.yml pull && docker-compose -f docker-compose.prod.yml up -d
volumes:
  - name: docker_sock
    host:
      path: /var/run/docker.sock

Thanks a lot for the help in advance!