@khasinaparveen - Were you able to resolve this problem. We are also facing same issue and not able to send email.
[EMailNotificationService-Processor] com.day.cq.mailer.oauth.impl.OAuthCodeServiceImpl error occurred while fetching accessToken using RefreshToken org.apache.oltu.oauth2.common.exception.OAuthProblemException: invalid_grant, AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: 705e2a15-bc3f-4197-859a-6ea588ed0400 Correlation ID: b15f603e-dce5-49ec-883e-fe1dc5d2f633 Timestamp: 2024-01-29 18:42:29Z, https://login.microsoftonline.com/error?code=9002313