Learned borrowing from Latin invalidus (“invalid”). By surface analysis, in- + válido.
Practice speaking and memorizing "inválido" and many other words and sentences in Portuguese.