DTS Error in hardware transcoding

Getting this error from Windows server when transcoder is set to hardware, streaming to web or iOS:

2017/10/02 02:03:25 [HLS] Starting transcoder for channel 600 (encoder=h264_qsv, resolution=720, deinterlacer=blend, bitrate=4000)
[ac3 @ 000000000062d380] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 00000000006bd160] Queue input is backward in time
[hls @ 000000000062bcc0] Non-monotonous DTS in output stream 0:1; previous: 4800, current: 3840; changing to 4801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0000000002c903c0] Error during encoding: device failed (-17)
Video encoding failed
[aac @ 00000000006bd160] 2 frames left in the queue on closing
2017/10/02 02:03:36 [WRN] Buffer for 132286F4 ch600 is more than 50% full (clients=1, len=16777684)
2017/10/02 02:03:41 [WRN] Buffer for 132286F4 ch600 is more than 75% full (clients=1, len=25165868)
2017/10/02 02:03:44 [HLS] Stopping transcoder session ANY-ch600 @ 0s
2017/10/02 02:03:44 [TNR] Closed connection to 132286F4 for ch600

Also getting this error frequently:

2017/10/02 02:06:06 [TNR] Opened connection to 132286F4 for ch592
2017/10/02 02:06:06 [HLS] Starting transcoder for channel 592 (encoder=h264_qsv, resolution=0, deinterlacer=blend, bitrate=10000)
[h264_qsv @ 0000000001f3cc00] Error during encoding: device failed (-17)
Video encoding failed
[aac @ 0000000002afa860] 2 frames left in the queue on closing
2017/10/02 02:06:19 [HLS] Stopping transcoder session ANY-ch592 @ 0s
2017/10/02 02:06:19 [TNR] Closed connection to 132286F4 for ch592

Same issue as Transcoding failing on Windows (device failed -17)