What exact ram model or what voltage specifically is the ram you have? If it's above 1.35V, I advise to keep it away from kaby lake as it can damage the CPU over time. (That applies to Skylake and I assume to kabylake as well).
The only motherboards that allow ddr3 ram and kabylake CPUs such as your G4560 are h110, b150, h170, and z170. These motherboard will likely need a BIOS update (by using a skylake CPU) to be compatible with kabylake.