Hi Daniyal,
Please share your setup logs for analysis. The following batch file collects the setup logs and saves the zip file to your desktop.
Download setuplogscollect.bat and save it to the desktop.
https://gist.github.com/winhelponline/26b28c4b695d183a842fbd1d5182959e
Right-click on the downloaded file and click Properties. Click "Unblock" and click OK.
Extract the batch file to the desktop.
Right-click on the file and choose "Run as administrator"
It outputs a SetupLogs.zip file on your desktop. Share the file on OneDrive or GoFile.io and post the download link here.
(The batch file contains plain text code. You can read its contents using Notepad before running it. It collects the setup logs, msinfo32.exe log, drivers list, boot configuration info, and the compatibility appraiser results from your system.)
Share your Farbar scan logs as well.
Download Farbar Recovery Scan Tool 64-bit (FRST64.exe)
https://www.bleepingcomputer.com/download/farbar-recovery-scan-tool/
Note: If Microsoft Edge or Chrome mislabels the Farbar Scanner executable as PUA/malware, choose to keep it by tapping … in the bottom bar, choosing Keep, and then choosing Keep anyway in the dialog that appears. See this screenshot: https://learn.microsoft.com/en-us/deployedge/media/microsoft-edge-security-download-interruptions/dowload-was-blocked.png. It's a safe tool used in most antimalware forums.
If the OS language is not English, rename FRST64.exe to FRST64English.exe.
Run the program. Don't check or uncheck any options. Click "Scan".
Add the two logs, FRST.txt and Addition.txt, to a Zip archive, share them on OneDrive or GoFile.io and post the link here.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information.