FWIW, I have been able to reproduce the issue where it throws ERROR: One or more files did not pass the validity check!. I am using yay on EndeavourOS and have been able to delete /.cache/yay/winbox and it works the second time, every time. I'm not sure it's a Mikrotik issue, or it would not work so reliably after wiping cache.