If the state of Texas or any other state does not require its electors to vote for the candidate who won the state then they should change the law.
“Require” must be backed up by severe penalties, so severe that there would never be any question about the elector’s vote. A 1000$ fine and 6 months probation ain’t diddly!