Yeah, I've had this 'bug' before.
In my case, I CLUA'd a bag of holding in right at the very start of the game, and when I picked one up in Spellhold the inventories duplicated.
This is simply because each individual bag of holding has its own CLUA code. If you have two with the same code, they share inventories.
Unfortunately, you cant use it to duplicate items