Difficult to tell without you posting a log file. A common cause for problems you describe is GPU overload. See this guide:
https://obsproject.com/wiki/GPU-overload-issues
In addition to the above, don't rescale twice. If your output is already set to 1280x720 in the video settings, you should not rescale again in the encoder settings.