BP loses its parent C++ class after re-opening the editor.

This URL perfectly solves your issue: https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725/8?u=hbbbs