Counterbalancing and non-counterbalancing errors
Many errors reverse by themselves. A counterbalancing error overstates income in one year and understates it by the same amount the next. If ending inventory is overstated at the end of Year 1, Year 1 income is too high and Year 2 cost of sales is too high, so once Year 2's books are closed, retained earnings is right again. Found after that, it needs no adjustment to retained earnings, though any comparative years presented are still restated. Found during Year 2, opening retained earnings is reduced, net of tax. Missed accruals and prepayments behave the same way.
A non-counterbalancing error stays in retained earnings until it has fully reversed. Expensing equipment that should have been capitalized understates retained earnings until the equipment would have been fully depreciated.
(Counterbalancing is textbook terminology, not a term ASC 250 uses.)