Copper does not rust .... just saying LOL. You may run into a clogged line if your water is not filtered but other than that those tankless are awesome!!why do you assume it is going out? i have had water heaters last much longer. my tankless is 0ver 20 years old
And @GC7 do not buy at the big box stores . Go to Locke supply. Also understand that in the last few years they have added a bunch of safety's and the new unit will require quarterly cleaning to keep it from throwing the shutoff do to lack of air flow. It is in the instructions . Also it is easy to do like @Catt57 said gas leak is the biggest worry. Iff your gas line has a flexible length of pipe between the gas shutoff and the HW tank replace it . If it is hard piped you could have a time reconnecting depending on where the inlet is on the new unit.
Take a pic and post it if ya want.