Handle integer overflow in deserialization code