Hi. I'm David, and I'm happy to help you.
Please clarify the following:
- Do you have a third-party antivirus installed? If yes, which one?
- Does this behavior only occur when trying to install Minecraft, or does it happen when trying to install other apps as well?
Also. What is the version and "OS Build" of your Windows?
- Press "Windows + R", type
winver, and click OK.
If you prefer, share a screenshot. Use the shortcut "Windows + Shift + S" to use the screenshot tool.
Be sure to censor your email address if it appears. The Microsoft Q&A is public.
I await your reply.