In my opinion, the question raised is not about physics, but a logical question. Because it is evident that the questioner knows that the sum of potential and kinetic energy is constant. But he asks the question that the object is so far away that gravitational force has no effect, as if nothing else existed outside the object. And then the object begins to move in a straight line with uniform motion - complying with Newton's first law - and it's time to fall into the gravitational space of a celestial body. At first, it had minimal kinetic energy, its potential energy was nothing (because it was not in the gravitational space), and then it gained enormous energy.
However, we have to decide whether to build our conclusions on mathematically formulated physical laws or on measurable physical reality. In the first case, the underlying assumption is wrong, because in a mathematical sense gravity is not diminished at any distance. In the second case, however, there is no basis for the assumption that an object that is so distant that the effect of gravity is physically ##0## will, due to the impact of a tiny force, actually carry out a straight line of uniform motion for such a long time to reach the gravitational space.
Unfortunately, in my opinion, similar thinking mistakes occur in real science, in different disciplines.