Bound states in the continuum for an array of quantum emitters