Hello, thank you for reaching out to Microsoft Q&A.
According to the Microsoft article below, if you remove all of your previous security information and replace it with new information, your account will be placed in a restricted state for 30 days. Unfortunately, Microsoft cannot shorten or expedite this 30-day waiting period.
You will need to wait until the full 30 days are complete. During this time, you will still be able to access most Microsoft services; however, you will not be able to sign in to any service that requires the updated security information.
Reference:
What does “Security info change is still pending” mean?