Retirement tax questions

Looking back at my returns, I have several years where the value in Line 2 is $0, therefore the cumulative value is never reported correctly. 

Most recently, in 2022, Line 2 is $0, thus restarting the total. 

How far back can I submit an amendment, because it's several thousand dollars that are being miscalculated?