It’s probably possible to get around this, but it would be even better if you could find out why it’s no longer contiguous and fix it.
training_args = TrainingArguments(
output_dir="./results",
per_device_train_batch_size=1,
num_train_epochs=10,
logging_dir="./logs",
logging_steps=1,
save_safetensors=False, # added
#################save_strategy = "epoch"
)