No state has ever gone bankrupt and shed its pension liability. Will that change in the future? Who knows. I work in retirement, and all the best prepared clients are those with pensions. NYS pensions especially are some of the best in the country. Teaches, officers, patrolman, fire dept, etc...all make $3-5k per month without including their SS and other retirement accounts. (deferred comp)
Employees with 401ks would need to save up over 1.5 million with a 4% withdrawal rate to get the same retirement. That would require saving 30%+ of your income towards retirement for 35 years when you can retire at 25 for the state/federal jobs.
New york state pensions are actually well funded as of this moment.
https://www.pewtrusts.org/-/media/assets/2019/06/statepensionfundinggap.pdf