Controversial ejection nearly costs North Carolina against Baylor