Could it be that your data range includes some not yet used cells?
Perhaps use a dynamic range instead which will adapt to the added data (using Insert Table perhaps)
See
https://www.contextures.com/xlNames01.html#Dynamic for suggestions
If need be post a sample sheet with some ( mock-up ) data showing the problem