Berry curvature dipole and nonlinear Hall effect in two-dimensional Nb$_{2n+1}$Si$_n$Te$_{4n+2}$