AWS EC2 Logs - UnrecognizedClientException

Hello I am getting below error in AWS EC2 from AWS Logs in awslogs.log file

2022-08-31 11:06:31,197 - cwlogs.push.publisher - WARNING - 2099 - Thread-11 - Caught exception: An error occurred (UnrecognizedClientException) when calling the PutLogEvents operation: The security token included in the request is invalid.
2022-08-31 11:06:31,197 - cwlogs.threads - ERROR - 2099 - Thread-11 - Exception caught in <EventBatchPublisher(Thread-11, started daemon 139794768176896)>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cwlogs/threads.py", line 58, in run
    self._run()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1403, in _run
    self._publish_event_batch()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1210, in _publish_event_batch
    self.sequence_token = self._put_log_events(self.event_batch)
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1248, in _put_log_events
    response = self.logs_service.put_log_events(**params)
  File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 316, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 635, in _make_api_call
    raise error_class(parsed_response, operation_name)
UnrecognizedClientException: An error occurred (UnrecognizedClientException) when calling the PutLogEvents operation: The security token included in the request is invalid.```
Although I have already attached Cloudwatch Policy in EC2 Role and all config also looks good. What could be the issue?

You may have an aws credential file or credentials stored in environment variables that your instance is trying to use before the EC2 role.