First and foremost, I'm in agreement with the advice against your option #1. I.e. it's inappropriate to edit a question in a way that changes its fundamental nature. This includes tacking a new question onto an existing one.
That said, it is not clear from your description whether the new error is due to a bug in the code provided in the answer, or because your own code has another bug that is revealed after solving the first one.
Note that this is one of many good reasons it's so important for a question to include a good, minimal, complete code example that reliably reproduces the problem. When you do, an answerer has 100% of the relevant context, and can actually test their answer to ensure it resolves the problem and has no errors.
If you did in fact post such a code example, then the problem is definitely with the answer, not the question. That is, the answerer should address all errors in that good code example. If they did not, then the answer should not be accepted.
In that case, you can comment on the answer itself, explaining that the answer is incomplete and requesting that it be revised so that it fully addresses your question and code example.
If you have not in fact included such a code example with your question, then you have two choices:
- Improve the question by fixing it so that it includes a good code example. Add a comment to the answer given to explain that they did not solve the problem, and that you have updated your question so that they now have enough context to provide a working answer.
- Accept the answer given and post a new question (preferably including a good code example in the new question).
Note that in this case, due to the lack of a good code example to work from, it is ambiguous whether your question was really answered or not. It's up to you to decide that, and you should do so based on whether you believe the error in the solution comes from yet another bug in your code, or a bug in the solution itself. Which action you take (of the two options above) depends what source you assess the new error to come from (i.e. your code or the answer).