As per knowledge, AP defaulting to factory settings on its own is primarily due to hardware issue. I would upgrade the device to new firmware and if it still does not solve the issue then RMA the device