A customer experienced the following issue on iOS Safari 18.6.2: TypeError: WeakMap keys must be objects or non-registered symbols.
The culprit is probably in web vitals initUnique function (which is vendored in).
This fix adds a try/catch to handle edge cases where invalid keys are passed to WeakMap, returning a new instance without caching when validation fails.