Hi Jasmeet,
Please post a screenshot of the error message dialog.
If the error occurs at startup, please clean boot the system to isolate the issue.
A clean boot is the process of starting Windows without loading third-party apps and services. Please see this Microsoft article for more information.
How to perform a clean boot in Windows - Microsoft Support:
https://support.microsoft.com/en-us/topic/how-t...
(Step 3 is very important. You need to first enable "Hide all Microsoft Services" before clicking "Disable all".)