A £4.5m Scottish Government house building contract looks to be under threat for a second time in the space of a year.