From Latin ervilia (“type of vetch”). Compare Spanish arveja and ervilla.
Practice speaking and memorizing "ervilha" and many other words and sentences in Portuguese.