As per the docs:
This construct uses a custom resource with Lambda functions and is maintained for backward compatibility only. We cannot deprecate it due to its usage in existing services like EKS (see aws/aws-cdk#28634 (comment)).
For new functionality, developers should use OidcProviderNative instead, which utilizes the native CloudFormation resource AWS::IAM::OIDCProvider and provides the same functionality with less complexity.
Is it possible to switch to the new OidcProviderNative to save having to create a custom resource / lambda?