Thanks for reaching out. It looks like the override color is lost when you swap icons. Unfortunately, this could be a longstanding bug that our engineers are aware of and tracking.
While we unfortunately cannot provide an ETA on when this may be resolved, I can add your case to our open bug report to hopefully give this more visibility. In the interim, the best work around we can suggest is to manually override the color again after swapping instances.
If it is not the same issue, please reach out to the support team with details of your bug so our technical specialists can investigate: here