Dynamic imprinting of nanoscale topological phases into an antiferromagnet