one easy partial fix could be :
Lua Code:
if IsUnderArrest() then return end
Why?
This function returns true while you interact when a guard. If there is a single slot update at this moment, it could only be the justice system removing your items
It should solve problem for this precise moment.
For some other addons, it could also being removed at other moments.
ex: do Lootdrop (who monitors
loots) would run when you interact at bank ? when you restack items ?