Optical potentials derived from nucleon-nucleon chiral potentials at N4LO