I agree there is probably an issue with a coordinate system. These messages from the log are telling:
A max_dist
of 1km equals ~373 million pixels. This means the pixel size of the input LULC raster is impossibly small. Perhaps the coordinates are measured in decimal degrees, but the coordinate system is incorrectly defined to be a system that uses units of meters?
This could represent the common problem of accidentally re-defining a projection instead actually re-projecting. Please see this similar example: OverflowError:in method 'Driver_Create', argument 3 of type 'int' - #6 by dave