Improve error message when constraints cannot be modified automatically