If you encountered such error during Oracle 19c installation phase, the cause may lay in the oraInventory directory. In my case it was a corruption of oraInst.loc file (it was absent). Renaming it in order the installer would create new one was the solution.
Good Luck !