I noticed you removed "the", I'm not sure if that's okay since I am not a native English speaker.
Regarding the removal of "the" from "the upper bound"; I dropped it to match the style of the errmsg, which says "upper bound of partition" without the article. Happy to restore it if someone prefers the original phrasing.