I have a human character who had his mind transferred to a computer via a method where his brain was gradually replaced with digital parts to preserve his consciousness. (Depending on your view of the Ship of Theseus thought experiment, he is still his original self.) This happened in the 22nd century.

If he continuously replaces or upgrades the computer he is stored on, will he be able to live indefinitely, or at least for 17 million years to be able to take place in my story?

Things to consider:

* The computer does not need to be fully powered off to replace parts
* He keeps his brain in a place safe from theft, EMPs, etc.
* He can still run a business through an Android body, so he can afford the repairs/upgrades

Edit: I am looking for if his mind can last that long psychologically. Will his mind degrade over time even if it is no longer biological? Will he still have a will to live after so long?