Hello Norah Tran,
Thanks for your question.
The error message mainly occurs due to a Conditional Access policy in your organization not being met
Basically, your authentication was correct, but there are other prerequisites not met.
You will need to contact your Admin to help resolve this.
See:
https://learn.microsoft.com/en-us/entra/identity/conditional-access/troubleshoot-conditional-access
Please let me know if you have further questions**
You can mark it 'Accept Answer' if this helped.