So I factory reset my Lenovo laptop today and I went away and then I came back and an error popped up saying,
"The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click "OK" to restart the computer and then restart the installation" so I click ok and then it'll restart and pop up again, it just keeps looping that basically
I assume you are installing Win10. Make yourself an install USB using https://www.microsoft.com/en-us/software-download/windows10 and do a clean reinstall. You will lose all programs and data but it should work. Then go to the Lenovo support site and download any Lenovo stuff you with to have. I would install their dashboard.