Same issue as [https://github.com/getsentry/sentry-javascript/issues/18425](https://github.com/getsentry/sentry-javascript/issues/18425) so we should apply the same fix as the one introduced in [https://github.com/getsentry/sentry-javascript/pull/18463](https://github.com/getsentry/sentry-javascript/pull/18463)
Same issue as #18425 so we should apply the same fix as the one introduced in #18463