Mitigation and control of Processing defects in metal AM