About Repeat History

sometimes repeat history list is deleted for some reason what is the cause?

question 1 : what triggers deleting history list?
question 2 : is there a way to store the history list for example when it reach at 20 list or MAX the 1st one will be deleted and will be replace the new one

thank you for answering