You need to figure out what is being doubled. Is it the event which is sending twice or are your flows causing this. There may be a duplicate flow or even a flow split which isn’t configured correctly. This may not be a developer question but a CS question.
The same issue is happening to us. Any token registered before June 7th was registered how it was inputted (in our case it was uppercase). June 7th and forward all tokens are being mutated to lowercase. We’ve even tried scripting on our side to fix but all API calls mutate the token input to lowercase.
The issue exists on Klaviyo’s server. All token input is being mutated to lowercase.
We’ve had to disable our notifications flow on our apps as this looks very sloppy. Hoping for a fix when sending out notification or de-duplicating tokens soon.