Not a bug, Xiaomi explicitly added code that checks if Accessibility is enabled, doesn't really have anything to do with TalkBack specifically.
Either way, I added a patch to remove those changes, but you should complain to Xiaomi directly, as this kind of "feature" is unacceptable.