This is generally caused by the Terms of Use functionality in Azure AD. In most cases it would prompt you continuously to accept the terms every time you sign in.
Can you try the steps below to check if anything has been accepted or not? Also, when you try these steps and go get a prompt to accept the terms of use, you probably want to accept them after carefully reading them.
Sign in to https://myaccount.microsoft.com/.
Select Settings & Privacy.
Select Privacy.
Under Organization's notice, select View next to the terms of use statement you want to review.
If none of this shows any useful information you need to reach out to your orgs Azure AD or Microsoft 365 administrators, generally someone from an IT department.