Matomo archives the same date again

Every time job core:archive runs, it always archive the days that have already been archived before going
back until August 2022. This results to the job running for days. I tried invalidating those dates but its still being processed. I also checked the status in the database and are tagged as ‘done’. There were days in the past that core:archive was not triggered which I think this is when the issue began occuring.