Retry BoMF with batch_size 51 if it did not work with 50