If the TNS510 uses flash, a weak cell can sometimes be restored by rewriting the same data. Perform a full chip erase (backup first!) and reprogram the TNS510 with the original firmware. This resets the threshold voltages of floating-gate transistors.