Restored from TimeMachine?
What happens is because the origianl boot drive is failing it corrupts the data, which gets saved to TM, then gets restored back to the new drive.
Have your files backed up to a storage drive and everything erased and freshly installed, no TM restores or other backups methods.
Only return your files to the machine.
If you had everything already freshly installed, then it could be your software that's to blame.