SOLVED: Go to your Graphics Card software and download the latest update. Add your game's profile to the Graphics Card's list of high-performance games. Right-click This PC icon, select Properties, then click Device Manager, and click on Display Adapters, right-click your graphics card name from the list and select Update Driver. Right-click the icon of the program you are having issues with then select Properties then the Compatibility Tab, uncheck the Windows 8 checkbox then click Run Compatibility Troubleshooter, then click Try Recommended Settings, then click Test the Program then click on the flashing icon on your taskbar below. Your game should run normally now and you can spawn vehicles without the ERR_MEM_EMBEDDALLOC error stopping your game. If you're spawning the USS Dallas submarine in GTA, you also need to start by diving for 2 minutes underwater in the Stromberg or Submersible1 first before spawning the new Submersible3. This clears out the persistence of extraneous peds, vehicles, and other memory-intensive elements in the surface environment by switching to underwater mode that is more suitable for spawning the submarine.