For most planets, there are no real limits to existence.
Five billion years from now, Mercury, Venus, and possibly Earth will be destroyed by the red giant Sun, but the rest should survive.
It is believed that as the upper layers of the Sun expand, Earth's neighbor, Mars, will survive. This is because Mars is unlikely to be affected by an expanding Sun.
The rest of the planets may change slightly during the planetary nebula phase, but they will not be destroyed. Once the white dwarf phase begins, they will become colder and their orbits will change due to the decrease in the mass of the Sun.
In the distant future, one or more planets may even escape and become rogue planets due to the influence of the passing dwarf star Gliese 710. But none of these events will destroy the planet.
One possible limitation could be very distant in the future (about 10 35 or 10 billion billion years, when the last star in the universe goes out) if protons decay. In this case, the planet will definitely "evaporate". However, just like the decay of radioactive elements, the larger the fragment, the longer the remainder will remain. Therefore, if protons decay (we don't know if protons decay), Jupiter may be the last planet to survive.
If protons do not decay, then in some unimaginably distant future, compared to the above, like in an instant (about 10 1500 years), all the remnants of stars and planets will become "iron stars" and "iron planets" through the quantum tunneling effect.
Then, for a period of time, the "Iron Planet" and "Iron Star" will turn into neutron stars or black holes, which will look like an instant. The latter will eventually evaporate through Hawking radiation. Jupiter will do it again.
It's all an exaggeration to call these objects "planets" because they don't resemble what we call planets.
Three minutes to talk about popular science