Original Article: https://technoresult.com/how-to-disable-data-execution-prevention-dep-in-windows-11/
Data Execution Prevention (DEP) in Windows 11:
Open Windows Security, click on the Start menu and search for Windows Security app, click, and open it.
From the left-hand side click on App & browser Control and from the right-hand side under Exploit protection, click on Exploit protection settings.

Under Exploit Protection click on the System settings tab.
Under System settings, scroll down and look for Data Execution Prevention (DEP). Click on the drop-down menu and choose Off by default.

This will disable the Data Execution Prevention (DEP) in Windows 11, and restart the system once to make the changes effective.