You can't ask which is correct, since neither of them is ungrammatical.
You can only ask which is more common. Specific contexts aside, the more common expression in general, at least according to Google Books Ngram Viewer as related to the printed word, is poses a problem for.
Which of the two you use would be a matter of personal choice.
There can also be a subtle difference in interpretation, where for might be referencing something as it's being considered, while to could be thought of as affecting something after the fact. However, that's not always how it would be interpreted.