Hello Nicolai !
Thank you for posting on Microsoft Learn Q&A.
This isn’t an Azure DevOps setting and it’s coming from Entra ID policies and what you are seeing screen is controlled by the self service password rese.
In the Entra admin center go to identity and follow this path : protection then password reset then registration.
https://learn.microsoft.com/en-us/entra/identity/authentication/concept-sspr-howitworks
and look for number of days before users are asked to reconfirm their authentication information and either, et it to a large value or 0 if you never want users to see that prompt again.
For the MFA prompts every few hours those are almost always caused by a conditional access sign in frequency or open the policy that requires MFA for this user and under session check sign in frequency. If it’s set to something like between 1 or 2 hours, users will get MFA prompts that often.
https://docs.azure.cn/en-us/entra/identity/conditional-access/concept-session-lifetime
You can increase it or turn it off and rely on the default 90 day rolling window.