This error may occur if the selected bucket region is disabled in your Amazon S3 account.

To resolve the issue, enable the disabled region in your Amazon S3 account. This can typically be done by an AWS account administrator or someone with the necessary permissions through the AWS Management Console.

Please follow reference link - https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html