From https://dictionary.cambridge.org/dictionary/english/plan-b.
"An action or set of actions for doing or achieving something that can be used if the preferred method fails"
Some alternatives could be "contingency plan"or "back-up plan"