Nonlinear polaritons in a monolayer semiconductor coupled to optical bound states in the continuum