Hello @Satyam Chauhan,
welcome to this moderated Azure community forum.
This is a tough question to answer.
In cases like this one, you probably want to have a second way to communicate with the device via a VPN, Auto SSH (only outbound), or Azure Arc.
Another alternative could be using OSConfig.
If you only have the edge agent portal experience to connect, try to do a ping first.
Then try to restart the modules, one by one.
If this does not work, you probably need to visit the edge device in person.
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.