Quasi-periodic modulation observed in the gamma-ray blazar PG 1553+113 and the MAGIC campaign 2015-2017