Power applications based on YBa2Cu3O7-delta coated conductors demand an enhancement of the critical current density J(c) in magnetic fields to be achieved using artificial pinning centres. A well-known approach to studying pinning by second phase nanoparticles is based on quasi-multilayer deposition of YBa2Cu3O7-delta (Y123) and a dopant material. In this study we use the Y2Ba4CuMOy (M = Nb, Zr; M2411) phase as a dopant material, which proved to be very successful in increasing J(c) for bulk samples. Although stability of the M2411 phase in bulk Y123 has been reported, experimental evidence of its stability in thin films is still lacking. We found that during the quasi-multilayer deposition, yttrium doped Ba(M1-xYx)O-3 forms instead of the M2411 secondary phase, and this causes an increase of J(c) at high magnetic fields as well as an increase in the irreversibility field below 80 K as compared against pure Y123 thin films.