Hello @Rahul Sharma
Thanks for reaching out!
It seems there is some issue with the scope. Your requested scope is either invalid, unknown, malformed, or exceeds the scope granted by the resource owner. Please refer this document to know how to handle invalid-scope errors.
Also, please share us the screenshots of API request and the grant_type details which you are using.
In case, grant_type is client credential flow, then you cannot dynamically request scopes. You must configure your required permission scopes on your app registration, then you set the value of scope in your code to "https://graph.microsoft.com/.default".
Refer this document to know more.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.