For me the reason was that I deleted the default branch and so I didn't have it anymore. When I re-created it, returning in the DevOps pipeline creation session, it worked as expected.