A quick check: you could try to Break All in visual studio while its hanging and see if you can catch it in the act of what’s taking so long.
Otherwise, Unreal has some pretty robust profiling tools that could narrow this down, but that’s a whole rabbit hole you may not want to visit yet.