After msys2/MINGW-packages#9645, maybe it would make sense to make the build fail if a module fails to build?  I did some nasty hacks with tee and sed in the MSYS2-packages/python PKGBUILD to detect a failed module and fail the build, but I know that Gentoo patches python to make it fail there instead.