Microsoft 365 Scope 'Get Mail' giving NoPermissionInAccessToken error

I am trying to use OAuth for my application and using Microsoft 365 Scope with authentication type ‘ApplicationIdAndSecret’. I have registered Microsoft Graph Api on Azure and have granted Mail.Read permissions, but while executing I am getting following error. Can someone please help me on this? I am new to using Microsoft Graph Api.