The error likely occurs because browser-specific code is being executed in the server environment, or vice versa. The most common cause is incorrect SDK import or an inadequate Webpack configuration that mixes client-side and server-side code. Checking your imports and build configuration should help ensure that each environment is using the appropriate code.
I hope this helps clarify the issue and guides you toward a solution!