About the exe file created after packaging

If the project names are the same, the same exe file will be created. This makes it possible to bring in an exe file that can be easily executed even if DRM is applied to the exe file with steam etc.
Is there any way to prevent this?

I don’t actually understand what you mean, but: DRM will not stop people running your EXE anyway.

As Steam says, it’s protection against “casual piracy”. Basically everything that arrives on Steam is cracked within 24 hours…