@christianpoveda added that same check half a dozen times or so. I think it would make sense to factor that into a small helper function that's called everywhere to avoid duplication.
The error message should also mention -Zmiri-disable-isolation so that people know how to make the error go away.