I am not having that issue myself, did you try doing that with the stock kernel of the rom you're using? Also if you are using ANY mods or magisk modules that could be related uninstall them and test.
In any case please state the ROM you're using, the kernel version, if magisk and magisk modules / mods, and send a log while trying to send a video and getting the error.
I have the same problem, here is the log when the error occurs:
2019-06-19 12:15:24.641 428-428/? E/QCOM*PowerHAL: Failed to acquire lock.
2019-06-19 12:15:24.753 428-428/? E/QCOM*PowerHAL: Failed to acquire lock.
2019-06-19 12:15:24.971 466-26178/? E/OMXNodeInstance: getConfig(0xb17fa004:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
2019-06-19 12:15:24.972 466-580/? E/OMXNodeInstance: getConfig(0xb17fa004:qcom.encoder.avc, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: UnsupportedIndex(0x8000101a)
2019-06-19 12:15:25.079 466-578/? E/OMXNodeInstance: getParameter(0xadca1004:qcom.decoder.avc, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
2019-06-19 12:15:27.270 466-466/? E/OMXNodeInstance: getParameter(0xadca1004:qcom.decoder.avc, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
2019-06-19 12:15:27.374 466-580/? E/OMXNodeInstance: getParameter(0xadca1004:qcom.decoder.avc, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019)
2019-06-19 12:15:27.419 8990-8596/? E/ACodec: [OMX.qcom.video.encoder.avc] ERROR(0x80001009)
2019-06-19 12:15:27.419 8990-8596/? E/ACodec: signalError(omxError 0x80001009, internalError -2147483648)
2019-06-19 12:15:27.419 8990-8595/? E/MediaCodec: Codec reported err 0x80001009, actionCode 0, while in state 6
2019-06-19 12:15:27.560 428-428/? E/QCOM*PowerHAL: Failed to acquire lock.