WebGL build error: memory access out of bounds

Hi! When I build my game in WebGL, it crashes when loading in the browser with the code below. All my other games work fine on WebGL, but not this one. I have no idea how to debug this! Any help would be greatly appreciated.

exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
    at __ZN16VirtFuncInvoker0IiE6InvokeEjP12Il2CppObject (<anonymous>:wasm-function[30350]:0xbe0d6e)
    at _NPC_Awake_m231D20F4C2104C626FFD76AF7863FBDBF7E4686C (<anonymous>:wasm-function[31752]:0xc18084)
    at __Z65RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017PFvvEPK10MethodInfoPvPS4_ (<anonymous>:wasm-function[28595]:0xbb2f4b)
    at dynCall_iiiii (<anonymous>:wasm-function[60096]:0x115b429)
    at Object.dynCall_iiiii (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:25585:40)
    at invoke_iiiii (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:16458:33)
    at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (<anonymous>:wasm-function[57507]:0x10edd5a)
    at _il2cpp_runtime_invoke (<anonymous>:wasm-function[56665]:0x10d48c5)
    at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5648]:0x1e6d92)
    at __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5646]:0x1e6b50)
    at __ZN19ScriptingInvocation13InvokeCheckedEP21ScriptingExceptionPtr (<anonymous>:wasm-function[12378]:0x43ce5f)
    at __ZN22SerializableManagedRef10CallMethodER6Object18ScriptingMethodPtr (<anonymous>:wasm-function[12376]:0x43cd37)
    at __ZN13MonoBehaviour9CallAwakeEv (<anonymous>:wasm-function[12428]:0x43f1c2)
    at __ZN13MonoBehaviour12AddToManagerEv (<anonymous>:wasm-function[12417]:0x43e47a)
    at __ZN9Behaviour13AwakeFromLoadE17AwakeFromLoadMode (<anonymous>:wasm-function[9477]:0x308a66)
    at __ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode (<anonymous>:wasm-function[12401]:0x43dd48)
    at __ZN18AwakeFromLoadQueue28InvokePersistentManagerAwakeEPNS_4ItemEj17AwakeFromLoadMode (<anonymous>:wasm-function[6081]:0x20b8fd)
    at __ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEv (<anonymous>:wasm-function[6079]:0x20b80e)
    at __ZN18LoadSceneOperation21CompleteAwakeSequenceEv (<anonymous>:wasm-function[11343]:0x3e603f)
    at __ZN18LoadSceneOperation25PlayerLoadSceneFromThreadEv (<anonymous>:wasm-function[11333]:0x3e43df)
    at __ZN18LoadSceneOperation22CompleteLoadFirstSceneEv (<anonymous>:wasm-function[11334]:0x3e47b4)
    at __ZN18LoadSceneOperation19IntegrateMainThreadEv (<anonymous>:wasm-function[11329]:0x3e3bcd)
    at __ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsEi (<anonymous>:wasm-function[12867]:0x46e39e)
    at __ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv (<anonymous>:wasm-function[12866]:0x46e0e4)
    at __ZN19RuntimeSceneManager9LoadSceneERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEES6_S6_RK9UnityGUIDiRK27InternalLoadSceneParameters (<anonymous>:wasm-function[12864]:0x46df75)
    at __Z21PlayerStartFirstSceneb (<anonymous>:wasm-function[12860]:0x46dab7)
    at __Z20PlayerLoadFirstSceneb (<anonymous>:wasm-function[12855]:0x46d34f)
    at __Z15InitWebGLPlayeriPPc (<anonymous>:wasm-function[12519]:0x445bdc)
    at _main (<anonymous>:wasm-function[12518]:0x4454f7)
    at Object._main (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:25045:32)
    at Object.callMain (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26858:28)
    at doRun (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26894:58)
    at run (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26906:3)
    at runCaller (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26842:28)
    at Object.removeRunDependency (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:1265:4)
    at blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:232:12
    at doCallback (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:5837:11)
    at done (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:5848:5)
    at Object.reconcile (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4961:11)
    at blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4748:11
    at IDBRequest.<anonymous> (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4837:14)
printErr @ UnityLoader.js:1144
UnityLoader.js:417 Invoking error handler due to
Uncaught RuntimeError: memory access out of bounds
blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:308 Uncaught RuntimeError: memory access out of bounds
    at __ZN16VirtFuncInvoker0IiE6InvokeEjP12Il2CppObject (<anonymous>:wasm-function[30350]:0xbe0d6e)
    at _NPC_Awake_m231D20F4C2104C626FFD76AF7863FBDBF7E4686C (<anonymous>:wasm-function[31752]:0xc18084)
    at __Z65RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017PFvvEPK10MethodInfoPvPS4_ (<anonymous>:wasm-function[28595]:0xbb2f4b)
    at dynCall_iiiii (<anonymous>:wasm-function[60096]:0x115b429)
    at Object.dynCall_iiiii (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:25585:40)
    at invoke_iiiii (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:16458:33)
    at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (<anonymous>:wasm-function[57507]:0x10edd5a)
    at _il2cpp_runtime_invoke (<anonymous>:wasm-function[56665]:0x10d48c5)
    at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5648]:0x1e6d92)
    at __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (<anonymous>:wasm-function[5646]:0x1e6b50)
    at __ZN19ScriptingInvocation13InvokeCheckedEP21ScriptingExceptionPtr (<anonymous>:wasm-function[12378]:0x43ce5f)
    at __ZN22SerializableManagedRef10CallMethodER6Object18ScriptingMethodPtr (<anonymous>:wasm-function[12376]:0x43cd37)
    at __ZN13MonoBehaviour9CallAwakeEv (<anonymous>:wasm-function[12428]:0x43f1c2)
    at __ZN13MonoBehaviour12AddToManagerEv (<anonymous>:wasm-function[12417]:0x43e47a)
    at __ZN9Behaviour13AwakeFromLoadE17AwakeFromLoadMode (<anonymous>:wasm-function[9477]:0x308a66)
    at __ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode (<anonymous>:wasm-function[12401]:0x43dd48)
    at __ZN18AwakeFromLoadQueue28InvokePersistentManagerAwakeEPNS_4ItemEj17AwakeFromLoadMode (<anonymous>:wasm-function[6081]:0x20b8fd)
    at __ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEv (<anonymous>:wasm-function[6079]:0x20b80e)
    at __ZN18LoadSceneOperation21CompleteAwakeSequenceEv (<anonymous>:wasm-function[11343]:0x3e603f)
    at __ZN18LoadSceneOperation25PlayerLoadSceneFromThreadEv (<anonymous>:wasm-function[11333]:0x3e43df)
    at __ZN18LoadSceneOperation22CompleteLoadFirstSceneEv (<anonymous>:wasm-function[11334]:0x3e47b4)
    at __ZN18LoadSceneOperation19IntegrateMainThreadEv (<anonymous>:wasm-function[11329]:0x3e3bcd)
    at __ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsEi (<anonymous>:wasm-function[12867]:0x46e39e)
    at __ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv (<anonymous>:wasm-function[12866]:0x46e0e4)
    at __ZN19RuntimeSceneManager9LoadSceneERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEES6_S6_RK9UnityGUIDiRK27InternalLoadSceneParameters (<anonymous>:wasm-function[12864]:0x46df75)
    at __Z21PlayerStartFirstSceneb (<anonymous>:wasm-function[12860]:0x46dab7)
    at __Z20PlayerLoadFirstSceneb (<anonymous>:wasm-function[12855]:0x46d34f)
    at __Z15InitWebGLPlayeriPPc (<anonymous>:wasm-function[12519]:0x445bdc)
    at _main (<anonymous>:wasm-function[12518]:0x4454f7)
    at Object._main (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:25045:32)
    at Object.callMain (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26858:28)
    at doRun (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26894:58)
    at run (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26906:3)
    at runCaller (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:26842:28)
    at Object.removeRunDependency (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:1265:4)
    at blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:232:12
    at doCallback (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:5837:11)
    at done (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:5848:5)
    at Object.reconcile (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4961:11)
    at blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4748:11
    at IDBRequest.<anonymous> (blob:http://localhost:58028/2b3086ba-b8ca-4a3d-8587-2c712226bdde:4837:14)

check this page;