Think of a collection of integrals, one for each n, rather than a function depending on multiple variables. The contradiction is that the number F(pi) + F(0) is both a positive integer and arbitrarily small.
There is no contradiction until n is large enough that F(pi) + F(0) is bounded below 1, hence the statement at the start: we'll pick a large enough value of n later.