Raise error when mixing block scope with deprecated options