Thank you!
I have an idea to buffer the color-switch input and only apply it when the player’s collider isn’t touching an obstacle. I’ll need to test this, though — I’m worried it might introduce some very unpleasant input lag. Also, I’ll probably need to add a separate, smaller collider specifically for this check.