Check this out:
https://github.com/prebid/openrtb/blob/main/adcom1/ip_location_service.go
PBS-Go won't allow setting 511 or 512 for device.geo.ipservice because int8 is -127..127, and 511 or 512 will overflow it.
PBS-Java does not have this problem as it uses Integer type for that field.
The fix is changing the type of the field obviously and adapting the corresponding code on the call site - we might just contribute a PR without an issue, it's accepted easier usually.