set hive.enforce.bucketing = true makes sure the data you insert is put in the right bucket. It seems like a previously inserted data causes this corruption.You should remove it and insert again, setting hive.enforce.bucketing to true beforehand.
set hive.enforce.bucketing = true
hive.enforce.bucketing
true