In both cases you would have been helped by proper error reporting and by tracing. (See OpenTelemetry)
For the first the remote server could say there is no Authorization header where tracing confirms it was there when sent by the client but not by the proxy.
For the second it would be really nice to see more detailed logging on the server side about why a particular peer certificate was rejected. My biggest gripe with current OpenSSL and Java TLS implementations is this lack of detailed reporting.