I managed to resolve this after contact with the AWS support by adding "--provenance=false" together with "--output type=docker" as arguments to the docker buildx build commands. This made it build in the V2 format supported by SageMaker. In our case the building was done via the aws-ecr circle-ci orb, using "extra_build_args", but adding the "--provenance==false" may help in other build environments too.