The root cause for that might be that the crates should not be located in your inventory, but in cargo instead.So I guess all the item codes were changed recently. I just added about 40 units of bot crates to my player inventory that I can't actually unpack lol
you might be able to sell them off, if not you need to revert your save game before you did this command line activity
it is always best to use GAME.addItemSmart() which sorts stuff into the right places