Always get this message when you try to create a trigger in lambda function:
Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
Then finally get the issue fixed by delete event in s3 bucket
Amazon S3 — <your-bucket-name> — properties
Advanced settings — Events
Then you can see 1 (or more) active event, you can delete it, then recreate the trigger in lambda,it should be fine now.