MV Items instantiate from Equip menu bug? [RMMV]

So today I was greatly shocked when I figured out my items are duplicating in my equipment menu. I'm posting this here hoping someone knows why this is happening and how to fix it. I am using some of the free Yanfly plugins. For instance the ItemCore, ItemUpgradeSlots and EquipCore (I think one of these might be the cause of the bug).

Here's what happened:
I was trying to make a new armor class so that Dual Wield would work in my game. I did this because Dual Wield automatically replaces the second Equipment Type so I had to rearrange my Equipment Types and then I needed a new Equipment Type to balance it. After I was done with everything, I ended up changing one Armor Type and Swapping Equipment Type number 2 (Accessory) and 5 (Shield). When I opened my Safe Files, both of them showed to have deleted some of the items that were supposed to be in the inventory. I added them back manually, but then I realised that if I was equipping an item to one of my actors, it'd just copy the item instead of removing it from the inventory. After a while I started noticing that it would only occur on the first equipment change every time I open the Equip Tab. When I turn the Plugins Off it still happens. It doesn't matter if the item was bought or gained through chest/NPC. When I sell one of the 'cursed' items, my game crashes (Screenshot under my text). So it looks like the weapons and armours are instantiating from my equip menu? This of course is not my intention at all! If someone knows how to help this, please!!

1622327239672.png
"of NULL" always means that the engine is missing some vital data.

usually that happens if you load a savefile that has become incompatible since it was created.

This often is caused by adding or removing plugins that modify the savefiles, but (what a lot of people don't know) this can also be caused by changes to the database, especially when deleting objects that were part of the original save.

And all your problem description sound exactly like that is what happened here - you modified the database, and that both changed the item counts (the engine stores items by ID, so it saves "6 items of ID 14", not "6 swords" and if item ID 14 is changed from sword to mace you loose 6 swords and gain 6 maces as the player of that save) and what items are defined instead of undefined/null.

Start a new game instead of loading a old savefile, and you'll see that this will not happen again (at least not until you try to modify the database again or make some other changes that cause changes in the savefile structure)

Original thread: https://forums.rpgmakerweb.com/threads/items-instantiate-from-equip-menu-bug-rmmv.136963/