Generic Answer when Fine Tuning OpenAI Model (for questions not in prepared dataset)

you should have a retry clause and assertions. if your assertions fail, retry till they pass. if it fails after certain tries, send a message cannot be done or something similar.
but I think adjust your prompt shall do it.