Why is Unreal 4.12 is freezing up during a build?

Try deleting the binaries, build and Intermediate folder from your project