i think u got bug, if u can't fix but game still can run u can do this:
- Open your project in the Unity Editor.
- From the Unity Editor menu, select Edit > Project Settings.
- Under Publishing Settings, set Enable Exceptions to Full Without Stacktrace.
https://www.reddit.com/r/Unity3D/comments/zscwai/3d_unity_webgl_error_runtimeerr...