The size of the pipe should be okay. The problem you may have is not because of the pipe, but the restrictor in the tankless heater. Try it and see. THe alternative is to abandon the pipe in the slab and run new through the walls or attic. I wouldn't do that until I tried it.