I have encountered similar situations and tried to explain the solution here.
https://mcuslu.medium.com/aws-dynamodb-json-data-import-some-tips-and-tricks-fb00d9f5b735