Within the Assignment activity there is only one Grade value. Your only other option would be to limited the attempts on the Submission settings to = 1. Students who receive zero could not reattempt and therefore fail. But limiting attempts, would apply to all student submissions.
or manually lock those students submissions when the grade is zero.
or manually lock those students submissions when the grade is zero.