Reinstalling clean system on faulty hardware? Suggestions
If overheating is the problem I would try doing the clean install while having a fan blow cool air directly onto the computer into the vent openings. I may even remove the bottom covers to increase airflow.

If you are selling for parts, why not remove the hard drive and sell it drive-less, then take a hammer to the drive itself to protect your data.