Its completely constitutional for he and other electors to go against the will of the mob of the moment. Otherwise there's no point in having an electoral college, electors, delegates or representatives.
That doesn't follow logically at all.
First,
at least one purpose of the Electoral College (if not the only one) is to give extra weight to the votes of smaller states. It also ensured that states could not unfairly swing an election by reporting a higher number of votes for one candidate or the other. It eliminated the issue of trust or potential fraud among the several states because the number of electoral votes was determined long before the election. Those purposes/advantages are not affected in the least by a requirement that electors vote as directed by their states.
Second, the Constitution leaves it up to the legislatures of each to decide how electors should be picked -- there isn't even a requirement for a popular vote at all within each state. So
that is the point at which the representational function would have been built in to the system to the extent one was required.
Third, the claim that electors acting on their own is consistent with a "representative theory" founders on the fact that the names of the actual electors don't even appear on the ballot in most states. And even when they do, they are likely to be ignoramuses of which very few voters have even heard. So, voters are not "choosing their representatives" for their intelligence, wisdom, judgement, or with the intention that they'll think independently because
the don't even know who the Electors are when they cast their votes. They're voting for the name of the President, not the name of the elector.
Finally, the entire structure of the system supports the idea that the election of the President and Vice-President is intended to be determined by the
states, and if the states wish to secure their decision by a requirement that the electors they appoint follow the direction of the Legislature, that is not remotely inconsistent with the Constitution.