What is the codec of the footage used and what are the specs of the Mac you edited this on? (i.e. GPU, Ram, OS version, FCPX version). Have you tried to export a full resolution master Prores file to see if the flashing occurs there? How did you compress the file for YouTube?