Black screen when I run windows build, the editor and android build work fine

I cannot run windows build after I use a “Package content” button. The game shows me a black screen and doesn’t respond. I have to kill it with crtl+alt+del. There are no build errors, and the android build works fine.

Unreal 5
VS2022

In two days of debugging, I learned that you could not import the same object to different places with ConstructorHelpers more than once. It would be nice if Epic added an error about that.

I hope it saves someone time.