@Yasmin Radwan I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.
Issue: You were getting the following error when I try to create Event Grid Subscription on an Event Grid Partner Topic with Azure Function as an Endpoint: Deployment has failed with the following error: {"code":"Endpoint validation","message":"Destination endpoint not found. Resource details: resourceId: xxxxxxx<Azure Function Name> Resource should pre-exist before attempting this operation.
Solution: You had to change the function's binding parameter to be CloudEvent instead of EventGridEvent and also installed the NuGet package: Microsoft.Azure.WebJobs.Extensions.EventGrid -Version 3.3.1 via Visual Studio, as your function is deployed to Azure Portal as a C# project.