The education secretary said exam errors are ‘unacceptable’ and risk causing unnecessary stress for pupils