Reproduction steps:
1. Open the attached project "1414799.zip"
2. Build the project using IL2CPP Scripting Backend
Expected result: Build was successful
Actual result: Build failed: "UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors"
Reproducible with: 2021.3.2f1, 2022.1.0f1, 2022.2.0a13
Could not test with: 2019.4.38f1, 2020.3.34f1 - due to errors in the Console
Reproduced on: Windows 10 Pro
Notes:
1. This project uses the NHibernate library https://github.com/nhibernate
2. The issue is not reproducible when using Mono Scripting Backend