I'm not on main computer so can't check MSI X470 CPU socket to PCIe socket spacing to say for sure, but quick looks like PH-TC14PE will fit. But without knowning RAM height or at last what RAM you have I have no idea if it is short enough to fit under front fan. RAM needs to be 35mm or less tall.
Sorry, Ram is the team group vulkan t-force. So quite low profile. Both inserted in slot 2 and 4.