This #error can occur if a session token is trying to use the previous format with an #AWS #Region not enabled by default. For more information, see Managing AWS STS in an AWS Region.
More fix >>
https://ibmimedia.com/blog/76/how-to-solve-aws-was-not-able-to-validate-the-provided-access-credentials