Check your CloudFront configuration. This will occur because of below reasons:
- The request is initiated over HTTP, but the CloudFront distribution is configured to only allow HTTPS requests.
- The requested alternate domain name (CNAME) isn’t associated with the CloudFront distribution.
You can refer this link also to resolve your issue: https://aws.amazon.com/premiumsupport/knowledge-center/resolve-cloudfront-bad-request-error/