Auto-Archiving error to create invalidations

Hi all,
I noticed an error message on auto-archiving log regarding invalidations during the archiving.
Does any one knows how to fix it?

Here is the message"

INFO [2021-10-29 06:00:09] 2812 Failed to create invalidations for report re-archiving (idSites = [“4”], pluginName = , report = , startDate = ): Error: Call to a member function isEarlier() on null in C:\Websites\matomo\core\Archive\ArchiveInvalidator.php:494

Stack trace:
#0 C:\Websites\matomo\core\Archive\ArchiveInvalidator.php(587): Piwik\Archive\ArchiveInvalidator->reArchiveReport()
#1 C:\Websites\matomo\core\CronArchive.php(346): Piwik\Archive\ArchiveInvalidator->applyScheduledReArchiving()
#2 C:\Websites\matomo\core\CronArchive.php(262): Piwik\CronArchive->run()
#3 C:\Websites\matomo\core\Access.php(664): Piwik\CronArchive->Piwik{closure}()
#4 C:\Websites\matomo\core\CronArchive.php(268): Piwik\Access::doAsSuperUser()
#5 C:\Websites\matomo\plugins\CoreConsole\Commands\CoreArchiver.php(27): Piwik\CronArchive->main()
#6 C:\Websites\matomo\vendor\symfony\console\Symfony\Component\Console\Command\Command.php(257): Piwik\Plugins\CoreConsole\Commands\CoreArchiver->execute()
#7 C:\Websites\matomo\vendor\symfony\console\Symfony\Component\Console\Application.php(874): Symfony\Component\Console\Command\Command->run()
#8 C:\Websites\matomo\vendor\symfony\console\Symfony\Component\Console\Application.php(195): Symfony\Component\Console\Application->doRunCommand()
#9 [internal function]: Symfony\Component\Console\Application->doRun()
#10 C:\Websites\matomo\core\Console.php(130): call_user_func()
#11 C:\Websites\matomo\core\Access.php(673): Piwik\Console->Piwik{closure}()
#12 C:\Websites\matomo\core\Console.php(131): Piwik\Access::doAsSuperUser()
#13 C:\Websites\matomo\core\Console.php(82): Piwik\Console->doRunImpl()
#14 C:\Websites\matomo\vendor\symfony\console\Symfony\Component\Console\Application.php(126): Piwik\Console->doRun()
#15 C:\Websites\matomo\console(32): Symfony\Component\Console\Application->run()
#16 {main}