@Abdurrahman mansoor
If this situation, it might be there's malware or virus in your computer which prevents you from changing the search engine. I suggest that you can use some malware and antivirus scanners to see if they can root out the problem.
Besides, I suggest that you can also try to reset Edge browser according to this article and repair Edge browser according to this doc.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou