1. Press Windows Logo button + R
2. Type "gpedit.msc" and press enter
3. Navigate to User Configuration > Administrative Templates > Windows Components > Windows Error Reporting and double click on the first option and click on enabled.
4. That's All. You will never see the Error reporting window again. If you want to enable, then click on the Not Configured option.