I also use msys2, and I mainly use opencv and wxWidgets libraries supplied by msys2.
For me, if I see a wizard get failed(mainl, it will show an error messagebox), I just open the scripts, and find the line showing the error message, and comment out the line, and run the wizard again, and then finally tweak the final generated project.