Finding Build Error Details

How can I find details about that error? I can build my project for Windows. I get this error for WebGL Build.

C:\Program Files\Unity\Hub\Editor\2021.3.5f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe @Library\Bee\artifacts\rsp\1439718551118351915.rsp
Error: IL2CPP error for type ‘UnityEngine.Touch’ in /Users/bokken/buildslave/unity/build/Modules/InputLegacy/Input.bindings.cs:51
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
at Unity.IL2CPP.CodeWriters.ChunkedMemoryStream.Seek(Int64 offset, SeekOrigin origin)
at Unity.IL2CPP.CodeWriters.InMemoryGeneratedMethodCodeWriter.Write(IGeneratedMethodCodeStream other)
at Unity.IL2CPP.SourceWriters.SourceWriterBase2.FlushStream(GlobalWriteContext context, IGeneratedMethodCodeStream stream, NPath filePath) at Unity.IL2CPP.Contexts.Scheduling.Streams.FileLevelParallelStreamManager3.WorkerWriteItemsToFile(WorkItemData2 data) at Unity.IL2CPP.Contexts.Scheduling.PhaseWorkScheduler1.WorkerLoop(Object data)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

BuildFailedException: Incremental Player build failed!
UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <1f0be198f5164d2489de92f22c998266>:0)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:158)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1f0be198f5164d2489de92f22c998266>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <1f0be198f5164d2489de92f22c998266>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I get this error when I use 2021.3.5f1. It is OK when I use 2021.3.0f1. This is LTS version. It should be better with new versions.

This error starts with 2021.3.4.

2021.3.0, 2021.3.1, 2021.3.2, and 2021.3.3 can build my project.

2021.3.4, 2021.3.5, 2021.3.6 can not build my project.

I couldn’t any change related to my problem.

I check line 51. I cannot cause that error. How can I trace that build error? I tried both new input system and “Both”.

/Users/bokken/buildslave/unity/build/Modules/InputLegacy/Input.bindings.cs:51
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)