Hi Mary,
Thank you for posting your query in Microsoft Community.
The error that you are getting can be caused due to a third party software conflict or misconfigured registry settings.
So, I would suggest you to try the following steps and check if the issue persists:
Method 1:
I would suggest you to boot your system in clean boot the system and check if the issue persists:
Putting your system in Clean Boot state helps in identifying if any third party applications or startup items are causing the issue. You need to follow the steps from the article mentioned below to perform a Clean Boot.
How to perform a clean boot in Windows
Note: Refer "How to reset the computer to start normally after clean boot troubleshooting" to reset the computer to start as normal after troubleshooting.
If the issue still persists, try the next method.
Method 2:
Try to run a System File Checker (SFC) scan to check for any system files corruption in the system.
SFC scan will scan for corrupt system files on the computer and repair them.
- Press Windows key + X, click Command Prompt (Admin).
- In the Command Prompt, type the following command, and then press ENTER:
sfc /scannow
For more information refer to this link:
Use the System File Checker tool to repair missing or corrupted system files
Hope this information is helpful. Do let us know if you need any further assistance, we'll be glad to assist you.