Can't package for Windows in UE5 [Unknown Error]

Well, afterall this wasn’t anything to do with visual studio lol, the engine itself had 2 bugged files that I replaced with the fixed ones and now it works, more info on this thread: