See image.sc issue - https://forum.image.sc/t/brainreg-error-when-checking-orientation-value-error-axes-dont-match-array/83794/9
In general though, we should rethink how the plugin works (e.g. it should operate directly on the layer, not on the data on disk).