I noticed that this bug mainly appears if I compile a C++ project in the Visual Studio, and not in the unreal editor. If I compiled in the editor, this bug does not appear. I haven’t tested that much yet, but it looks like it’s a hot reload problem.
Additionally: this bug appears in the development build, and almost never in the debug build.