New Mexico Representative Matthew McQueen (D-Santa Fe) has introduced HB 425. It says if a presidential elector does not vote for his or her party’s presidential nominee, he or she will be replaced. The text of the bill is here. It seems to imply that an independent presidential candidate will never carry New Mexico, because it only deals with party nominees for presidential elector. Here is the legislative analyst’s description of the bill.
See this article for more on how electors are chosen.