When configuring git repository, it indicates Azure DevOps server 2022 and later are supported:
In official doc, it supports to connect to Azure DevOps server 2022:
Can we integrate azure devops server 2019 with adf
I'm afraid it's not supported, you need to upgrade to Azure DevOps server 2022 following doc here.