South Carolina didn’t chose electors based on popular vote until 1868.
Until the late 1960s, in several Southern states, unpledged electors were on the ballot instead of Presidential candidates. Once elected, the electors could vote for whichever candidate they wanted to vote for. Consequently, the popular vote totals for Presidential elections prior to 1968 are estimates, since in some states no one voted for a Presidential candidate.