You will want to check the Page Number setting in the style you are using.
The style might be set to Show the Full Range of Pages.
You can change the setting Don’t Change Page Numbers.
In EndNote you can go to Edit > Output Styles > Open Style Manager > locate the style you are using > Click Edit > go to Page Numbers > make the change above > go To File > Save As > (EndNote will not allow you to change the existing style in EndNote but will always apply the change to a copy of the style) Click Save to save the changes to a copy of the style > close the style window.
You can the use the new style in your document.
If you have trouble of need further assistance then contact Technical Support:
Thanks - that worked. I can switch the problem on and off by changing the Page Number options.
I am most grateful for your help. I suppose I can say that I was lucky to notice the problem before the article was published and other researchers began to inform me politely (or otherwise) that my line numbers were larger than the number of lines on the pages of the manuscript I have been working on!