Avoid string and varargs allocations for preconditions checks in hot methods

Compiler explorer shows a 4x reduction in code size for the method on the hot path.

BUG=327646201
Change-Id: Idcd1e3cc62ce5c9360e0ab334b01ecb2c3d73be1
1 file changed