When I go to export my game, I export it to a separate file as an exe file. I do not have difficulty exporting the game. However, when I go to share the exported game, my email recognizes the .exe file as a virus. GoogleDrive does the same, as well as oneDrive. Any idea as to what I should do to remedy the issue would be greatly appreciated. I have also tried exporting the game as a pkg and zip file with the same error occurring.

It really is a bit annoying: the best solution I found is to host the code on GitHub where you can use the "release feature" to upload an executable. See for example here

Recent versions of Windows (and online virus scanners) will often reject unsigned executables by default. If you plan on distributing a game outside of Steam, you should purchase a Windows code signing certificate (there are many providers out there, each having different pricing and guarantees).

However, from what I've heard, creating a .msi installer (using an utility such as WiX Toolset) may make your game executable "immune" to code signing checks. (The installer will still display a warning message upon being run.)

Ouch.

Didn't know that Windows also have this problem. I do plan to distribute my game outside of Steam. Kinda sucks to know I have to purchase a Windows code signing certificate for that.