In my experience, this issue happens when something goes wrong with hot reload. Try closing the editor, and compile from visual studio. Try removing binaries and intermediate folder too before compiling if that doesn’t work, then re-open the editor and try to package again. Have you renamed the c++ classes or moved them to a different folder? If so try to generate the visual studio files again with the editor closed before compiling from visual studio.
I hope this helps.