Dear Norman Ngonevolalath
Welcome to Microsoft Community.
I understand that you are experiencing a blue screen loop problem and that you have tried to reset but without success. This appears to be due to a corrupt and missing base file on the system, which is causing the system to not function properly and cannot be repaired by a reset. As you have already tried a reset without success, a fresh install may be the best solution to the problem. As you mentioned that your friend gave you the computer, this solution will allow you to install a new environment on your computer and provide you with a better experience.
You can refer to the following link for a fresh installation Please ensure that you backup any important data, including Documents, Pictures, Videos, and more. After that, you can find instructions on how to install Windows 10/11 in the following article by MVP Andre: How to: Perform a Custom Installation of Windows 11 and Windows 10 - Microsoft Community
Disclaimer: Please ensure that you backup any important data, including Documents, Pictures, Videos, and more.
Hope it helps! If there are any questions along the way, please share them with me in your reply.
Thanks for your patience and understanding!
Best Regards,
LucyW-MSFT | Microsoft Community Support Specialist