Improve error message when incorrect value is given for a resource quantity.
Improve error message when incorrect value is given for a resource quantity.

PiperOrigin-RevId: 454182260
Change-Id: I8de45bb1e37abbcbbdd344ebd8f9b0ae7c28f03b
GitOrigin-RevId: da2d2d34a215811819a204bb5382a5785d170fd2

deepmind/xmanager,deepmind/xmanager