Bit late but you need to set the Run/Debug Configuration to your project configuration instead of the “UE5” project configuration
Getting same issue. How to fix this?
As IrreverentPixel said, you need to switch the Run/Debug config when compiling. UE5 is the source of the engine. But you need to compile your own project.