How to solve an issue with compiling the engine, exception thrown

Im trying to compile a version of the 5.21, but I’m getting the following error:

Exception thrown at 0x00007FFE7F2595BD (UnrealEditor-Core.dll) in UnrealEditor.exe: 0xC0000005: Access violation reading location 0x0000000000000008.
At OutputDeviceRedirector line 491

I’ve reinstalled visual studio and c++ packages already. I really dont have a clue of what’s the issue. One thing is that the project is compiling fine in other pcs but not mine, I’m running an updated version of w11.

I had similar problem with the same error but in the function “ReplaceDeprecatedNodes” as I attached on screenshot below. I had local changes so I tried to disacard blueprints one by one until editor opens. Probably while working some weird behavior in graph were made so I had to recreate this whole blueprint, a bit waste of time but finally get it to work. Maybe if you go back a few of commits it could open properly.