Your log shows problems with the nvenc encoder:
17:13:46.039: error: EncodePicture failed!: generic error (20)
17:13:46.056: [NVENC encoder: 'streaming_h264'] nvenc_encode: Error encoding: Unknown error occurred
17:13:46.056: Video stopped, number of skipped frames due to encoding lag: 5/87058 (0.0%)
17:13:46.199: Error encoding with encoder 'streaming_h264'
This is the first time that I see a hardware encoder fail this way. I don't know what the cause may be. Broken/overheated hardware (GPU) perhaps. Or the card doesn't get enough power from the power supply. Check the required cabling to the power supply.
You might also reinstall the Nvidia drivers, but I doubt that will change anything.