Hello Dhananjai Rengith !
Welcome to Microsoft QnA!
To turn on stack protection in Windows 10:
Open the Control Panel and go to System and Security > System.
Click on "Advanced system settings" in the left-hand pane.
In the System Properties window, click on the "Advanced" tab and then click on "Settings" under the "Performance" section.
In the Performance Options window, click on the "Data Execution Prevention" tab.
Make sure that the option "Turn on DEP for essential Windows programs and services only" is selected. If not, select this option and click "Apply" and "OK".
Next, click on the "Stack Protection" tab.
Check the box next to "Enable stack protection" and then click "Apply" and "OK".
Restart your computer for the changes to take effect.
Note that not all systems or applications may be compatible with stack protection, so you may need to test your system and applications to ensure they still function properly after enabling stack protection.
Hope this helps or else send us some feedback
Kindly mark the answer as Accepted in case it helped !
Regards