First of all Open VirtualBox. And after from a list of your operating systems which is at the left side, select that one which gives you error in the installation process. After press on the "Settings" button at the top.
Now in new window navigate to "System" tab from the left panel.
And the last thing we need to do is switch to "Processor" tab at the top and you can see there a feature to "Enable PAE/NX".
Now simply check that box/make it active and press the OK button to save the configuration.
That's it. Now you can try again to install the operating system and you will get succeed.