Set "Background component permissions" to to stop it from running. Windows 10: Open Settings and select Gaming . Toggle off the switch under "Xbox Game Bar".
The Xbox Game Bar is one of the main culprits behind Windows overlay. To disable it: disable windows overlay