Failed to load hostfxr.dll

I am on Windows 8.1 running Unity version 2021.3.3f1. I opened up a 2D Project from Unity Hub. On first startup it prompts me to run the program in safe mode, and I do as told and it shows the error as the image attached with this thread.
I looked up certain solutions on YouTube and Google but found none as this problem was usual in Visual Studio Code and other applications.
I also installed the latest DotNet Runtime for Windows 8.1 but found out nothing happened.
I anyone knows how to solve this problem, do reply.
Thanks.

A 2D project isn’t special, it’s just a selection of packages. This isn’t a 2D feature related issue.

I’ll move your post to the Editor & General support forum.

0x8007000E stands for E_OUTOFMEMORY. How much free memory do you have on the computer? Did you disable the page file by any chance?

This could also be a case of corrupted Unity installation. Reinstalling should help.