Are you trying to do a recovery, or a reset? Two different things. If it fails recovery, there's an OS issue that can't be recovered due to too much damage to the file system or drivers. If it fails to install during a Reset, there is probably a hardware issue like a bad memory module or hard drive.
It's also possible that your recovery media is corrupted. Try the following method. Download and create media, using another computer, for use during installation:
http/windows.microsoft.com/en-us/windows-8/create-reset-refresh-media
Then follow these steps:
http/www.eightforums.com/tutorials/2299-clean-install-windows-8-a.html
This may require knowing your product key, and it may not. If you know it or it's printed somewhere, great. If not, it's highly possible that it's keyed to your bios already or if you registered your original installation using a Microsoft account, you can activate the installation during or after you install by using that method.