Editor crashes when building player on Mac editor

Hi. I found that Unity 2022.2.0b11 crashes when building Android/iOS player on Mac editor. Both Intel/M1 mac makes crashes.

On Windows Editor, I can build without any problem.

Reported as IN-20452 (contains crash log only, no reproducible project).

Here is part of crash log:

I figured out more detailed reason for this issue. When I import 2022.2b project firstly, its monobehaviour links are broken if the script is located in Packages (include built-in packages, like URP). After “Re-import All”, broken scripts are fixed and building player works well.