Armie Hammer went to a "dark place" after injuring his pectoral muscle because he feared it meant he was "done".