How might you best iterate through an Optimized backtest that subsequently does each year?

So for example:

    def Initialize(self):
        self.SetStartDate(int(self.GetParameter("YearStart")),1,1)  # Set Start Date
        #self.SetEndDate(int(self.GetParameter("YearEnd")), 1, 1)
        self.SetCash(10000)  # Set Strategy Cash

 

but each year run like 2018 - 2019,  2019 - 2020, etc. Do I just have to accept the bunch of failed backtests and extra iteration count?