Reset horizontal scroll bar width in Notepad++
This is not possible.
Notepad++ uses the Scintilla editor component which doesn't provide this feature. Yes, it will increase the horizontal scroll range but it won't reduce it.
Here's the relevant part from the documentation (emphasis mine):
If scroll width tracking is enabled then the scroll width is adjusted to ensure that all of the lines currently displayed can be completely scrolled. This mode never adjusts the scroll width to be narrower.
Scintilla developer Neil Hodgson has repeatedly said that this feature will not be implemented due to the performance cost of dynamically determining the current widest line.
If your longest line is about 1000 characters but your scrolling range is greater, you can always close and re-open the file to reset the range to your longest line.