For FO's it's actually written in the manuals that if you fail a command upgrade you will only be employed as FO for a maximum of 24 months from point of failure. Not sure how strict they adhere to this however.
Depending on the failure issue, the Company will keep the candidate’s contract as First Officer for a maximum of 24 months.