Find the Edit pipeline screen, in there the "Default agent pool for YAML" is likely blank (even though it is present in the yaml), enter name and Save:
Pipelines > SELECT_PIPELINE > Edit (button) ? Triggers (3 dots) > YAML tab