I am designing a PCB and I have a problem with the LDO, the voltage mesured in the output should be 5v but it is over 7v.
I have several PCB's i got assembled from JLC and all of them have the same problem, one is outputting 7,02v, another 7,26v and the rest are somwhere in between.
This is the schematic for the power supply part of the PCB

I used an
AO4407A (P-channel Mosfet) to protect from reverse polarity, and an
AMS1117-5.0 to lower the 12v VCC into 5v to power an ATmega 2560, optoisolators, mosfets, a couple of ULN2003A, a YX5200 mp3 player IC, an oled display and a couple more little things.
I don't know if I did something wrong or the LDOs are defective.
This is the pcb layout:

Any help would be really appreciated.