BoundsError when solving non linear system of equations

Welcome! As it is, we can’t run your code (which package does nlsolve! come from?), so please provide a minimal (non-) working example, as described here:

It’ll also be easier to help if you use triple backticks (```) to quote your code, since that has syntax highlighting an preserves indentation.