Fix potential datetime OverflowError from days input too large