When I deleted a colour variable used in a component in another file it wasn’t automatically detached like styles normally do, and when I tried to change the variable the dropdown bugs out and you can’t scroll or select anything.
A temporary solution is to manually detach it.
To test, create a colour variable, publish it to the library and use it in another file, then delete the variable then try to reassign it in the other file.