Local color variables are changing when copy pasting

I have a local variable color in 1 branch. It is applied to a shape. When I copy and paste the shape into a new branch, the hex color is automatically changing. This happens whether or not I click on the CTA to “Copy variables into this file”. How can this be avoided completely? I want to copy and paste full designs into this new branch I’ve created.