Improve error message when memory/disk is given w/o unit

[Finishes #64359068]