to add with the above, site is setup in a sub directory which is https://www.outlookindia.com/igaming. seems that when CDN is enabled with S3, the files are uploaded to the root of the bucket, but when serving the files, \igaming\ is being appended to the S3 bucket cname, resulting in 404 and images not loading.
Example:
Image uploaded here: https://igaming-images.outlookindia.com/wp-content/uploads/2024/09/1-1-300×171.avif
trying to load image from: https://igaming-images.outlookindia.com/igaming/wp-content/uploads/2024/09/1-1-300×171.avif