The bug happens when you sell an item with the same ID as the "-" stock of the merchant. And the "-" remains but the integer increases
1) What if the NPC in question could 'put' the the things that you sold to them into another place, and perhaps the other place was set to re spawn nothing as to reproduce an overstock effect. At least, the "placement" script would need to be added
2) What if "-", " ", and "+" could determine merchant stock instead of the current "-" and assumed "+"
Where "-" would be respawning items " " would be original merchant items and "+" would be items sold to the merchant. When anything is bought from the merchant it becomes a " " in the player inventory, or a "+" if it was stolen. This would add 2 different NPC inventories, and possibly a second player inventory.
These are some changes that I think would alter either the MW exe or bsa file.
Also, can the '24 hour cash respawn' be applied to respawing merchandise?
Edit: punctuation
3) Or just a block on buying any item set up in the inventory with a "-" range.