How long can a newborn baby be on a ventilator without getting any permanent side effects?

Usually... ...It's the need for ventilation (disease or prematurity) that is responsible for most of the complications.