Sorry for such a delayed reply but I figured I could post a response anyway, it ended up being something to do with the directional light in the scene. I don’t know what exactly was happening, but I deleted the light and replaced it and everything ran fine after building.