2 years for secondary fermentation? I. think you mean aging, I've never seen fermentation last that long.
6 months and racking is ok. but really 1 year don't need to rack unless it's really needed. but every few months dosing kmeta helps a little. check your bugs more regularly, did you not sanitize your car boys well enough.
most of these things can be prevented.
as others have said. if it's salvageable rack it off get it in a sanitized carboy add kmeta, top it up, wait a month check again if it's flavor is ok, and no off smells, bottle it.
hope you don't lose it all