It's far simpler than that. Each state has a slate of electors for each candidate. If Ohio laws is changed to say that the slate of candidates for the winner of the national popular vote is the slate that is allowed to cast Ohio's votes then what is to prevent them?
https://www.youtube.com/watch?v=nW-NiGp1gys
Which is every bit as likely that Ohio's legislature will do that.