I managed to start up the pc but it would not boot into windows , whenever i chose start windows normally, it would just restart.
So I booted into a windows' mode (there was an option to fix windows on startup or something, I cant remember the name rn) and ran a memory diagnostic, I don;t know what happened during the diagnostic , maybe it fixed some HDD issue but anyways the PC restarted and has been working just fine since. I guess it was a hard drive issue?
Also, thanks everyone for helping