My co-worker had a similar error, a duplicate "Apple Worldwide Developer Relations Certification Authority" expiring on Feb 7, 2023. Deleting the second instance allowed them to get past the error "CodeSign failed with a nonzero exit code" while trying to "Sign AccessibilityResources.bundle" in a react-native project.