Are you try the another HTC one M8 Stock OS Recovery . Please Try This .your friend if any one have htc one m8 means ask him to get the backup of the os in his memory card and remove that and insert in your mobile and try to go recovery mode and installed. Please try and tell me if this method...