while Invisible and in Stealth, if one attempts to split off a large amount of gold that the Merchant has on them, it will break invisibility
since patch 5, invisibility breaks on picking anything up, splitting stacks might be considered a form of pickup and trigger it... this was invisibility's behavior on divinity : original sin 2 but it was cheap back then.