The mistake is 'herself'. The correct word is 'himself' because the subject is 'He'.
Corrected sentence: He cut himself by accident.