Handle integer overflow