How to fix texture loading issue in the frame that spawns actor and loads mesh in Unreal Editor

I’m working on a feature that spawns an actor, loads a mesh, and captures it to a PNG in the same frame.

However, there are cases where the texture isn’t loaded properly. So I tried using the function “FTextureCompilingManager::Get().FinishCompilation({ Texture });” to fix it, and while it has improved overall, there are still cases where the texture doesn’t load properly, especially when running it again after deleting all the intermediates.

Is there any way to ensure that all referenced textures are loaded perfectly when generating a mesh?