Hello @Trinetra K S ,
welcome to this moderated Azure community forum.
I'm not informed about the IP addresses used by the EventGrid specifically but in general, Microsoft takes the right to change public firewall IP addresses of its services.
These changes are normally announced as a list of IP ranges used by their resources, called Service Tags.
You can either download the list or use the API.
See this blog post for details.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.