SafeWork New South Wales will investigate the death of a man who died while working on a dam in the NSW Central West.