The problem lies here:
[NVENC encoder: 'simple_h264_stream'] Failed to open NVENC codec: Generic error in an external library
Although OBS says you have NVENC support, that is not correct.
03:02:38.947: NVENC supported
The Nvidia 940MX GPU card you have does not support NVENC.
Adapter 2: NVIDIA GeForce 940MX
The 940MX is a GM108 Maxwell 1st Gen card. If you look at image with the architecture above the table, next to the Encode HW title, there's an an asterisk next to it. The asterisk means "except GM108"
https://developer.nvidia.com/nvidia-video-codec-sdk#NVENCFeatures
So you can't use the NVENC encoder and will have to switch to x264.