This is a suggested clarification of the question; judging from the responses, I think the question is not completely clear. [EDIT: Under the assumption that this clarification is correct, an answer to the question is given below.]
The intended question, I believe, is something like this. If there is a short ZF proof of "ZF proves P" then is there necessarily a short ZF proof of P? If not, then can we write down an explicit example of a short ZF proof of "ZF proves P" for which it is infeasible to write down an explicit ZF proof of P?
The first thing to note is that there need not be a ZF proof of P at all, unless we assume some kind of soundness condition on ZF. For example, suppose P is the statement 1=0. We don't know a way of deducing the inconsistency of ZF from the assumption that ZF proves "ZF is inconsistent." Now, this observation does not torpedo the question, because if someone explicitly writes down a ZF proof of "ZF proves P" then we are all going to be convinced both that ZF proves P and that P. But it does show that passing from a proof of "ZF proves P" to a proof of P is not entirely trivial.
The second observation is that examples involving infeasibly large P do not really answer the intended question. We are, I think, supposed to fix some straightforward algorithm for converting P into "ZF proves P". In particular, if P is infeasibly large then "ZF proves P" will be infeasibly large, so that writing down an explicit proof of "ZF proves P" will be infeasibly large. What is being asked is, how much of a blowup in proof size can there be when passing from "ZF proves P" to P itself?
EDIT (based on Emil Jeřábek's comments below): Suppose we interpret the phrase "has been shown" as permitting us to assume that ZF is $\Sigma_1$-sound. Then, as explained in the comments below, we can take some fast-growing recursive function $f$ (Ackermann, say), and let $P$ be the following "self-referential" statement:
There exists $x$ such that there is a ZF-proof of $\mathsf{Prov}(P)$ of length at most $x$ but no ZF-proof of $P$ of length at most $f(x)$.
Since $P$ is $\Sigma_1$, one can explicitly construct a relatively short ZF-proof of $\mathsf{Prov}(P)$. If we now assume that ZF is $\Sigma_1$-sound, then we can conclude that $P$ is true, so that means that the "trivial" algorithm that searches for a proof of $P$ will terminate with a valid proof of $P$. However, the shortest such proof will be infeasibly long and hence has never been (and never will be) written down explicitly.
If the assumption that ZF is $\Sigma_1$-sound bothers you, then you can try carrying out the following thought experiment. Imagine yourself following the above recipe and explicitly constructing the ZF-proof of $\mathsf{Prov}(P)$. Imagine yourself reading through this ZF-proof line by line. Presumably, reading and understanding a ZF-proof of something convinces you that it is true, so at the end of this process, you will become convinced that $P$ is in fact provable in ZF. Now you have to decide for yourself whether the ZF-provability of $P$ "has been shown."