You have a few things to fix:
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
obsproject.com
HAGS should always be disabled.
Non default x264 settings could lead to issues. Actually, you're overloading the CPU.
Try using simple output mode and select one of the quality presets. The best way could be running the Auto-configuration Wizard and applying the settings it gives. Then restart OBS (!important).
Now please perform a test recording.
Look inside Help menu. Upload the current log file and paste the url to the log in here. Click on the Analize button to troubleshoot further issues.
Also, you want to uninstall the malware called mcafee.