The delegates can vote however they want. (They won’t, but they can.) They can be subject to punishment under state law for not voting as directed by state law, but that’s after the fact - after the vote has taken place.
State laws cannot be enforced at a national political party’s convention and there is no federal law governing how delegates must vote. The courts have ruled repeatedly in favor of political parties’ right to govern themselves. They have freedom association.
If the delegates decide to play the “conscience clause” card, do they need to declare a reason? They’d be conscientious objectors, but on what grounds? And would this set a new precedent for the average joe in his own future decisions? The “conscience clause” is a two edged sword.