Valley edge states as bound states in the continuum.