Errors related to invalid format strings (unlike data mismatch errors) should throw ValueError. Closes GH-6185.
We check for potential signed integer overflow, and bail out gracefully, in that case.