It can happen that the error raised from keycloak is not detailed enough [1]. This makes
the deposit server not too happy about it. So this commit fixes it by detailing only if
it case.
[1] https://sentry.softwareheritage.org/share/issue/ae84f6a49ded4adc84c3570020b527ee/
Related to T3166