Resetting to factory setting

my laptop is not resetting to factory settings, it keeps going in loops and tells me that it encountered error and can not reset to factory setting

Unless you tell me the serial number, i could not send you the files