NvHostChannelSetModuleClockRate: NvError_IoctlFailed with error code 25

I have an application where I concurrently record overlapping videos via a gstreamer pipeline using nvv4l2h264enc opencv in a multi threaded fashion. It works great generally but recently saw this error before the application crashed. Can’t seem to find where/what this error code might be.

NvHostChannelSetModuleClockRate: NvError_IoctlFailed with error code 25
I also saw a similar
NvHostChannelSetModuleClockRate: NvError_IoctlFailed with error code 9

Gstreamer Pipeline:
appsrc ! videoconvert ! video/x-raw,format=BGRx ! nvvidconv ! nvv4l2h264enc ! video/x-h264,format=byte stream ! h264parse ! qtmux ! filesink location=filename.mp4

Hi,
The latest release is Jetpack 5.1.2 If you use previous version, we would suggest upgrade and try again.

The error print may be triggered by memory leak. You may inspect your application to check possible leak.