Random 401 when submitting events

I am running an on-premise instance Sentry 8.22.0 based on your docker-compose repo. I noticed that sometimes Sentry replies with error 401 (not 429 or 403) when submitting events. After resubmitting them they are sometimes accepted.

Why is that?

Best regards,
Samuele