EventBridge duplicate events breaking dedup routine

PUT /api/v2/webhooks configures a 5s retry window but EventBridge pushes identical event_id payloads on timeout. The conversation.media.created stream duplicates every time the endpoint drops a packet. Our json.loads() routine hits payload['data']['event_id'] twice. Memory spikes past 512MB during the GMT+8 rush. The JSON looks like {"event_id": "a1b2c3", "type": "conversation.media.created"}. We’ve tried a seen_ids set in the handler but it leaks. Need a fast filter that won’t crash the function. The hash check just keeps failing anyway.