My capture program sometimes captures images successfully upon startup, and sometimes it fails to capture

When it fails, the kernel log shows the following messages:

[  174.753229] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  174.753528] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  174.754573] (NULL device *): vi_capture_control_message: NULL VI channel received
[  174.754736] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[  174.754963] (NULL device *): vi_capture_control_message: NULL VI channel received
[  174.755105] t194-nvcsi 13e10000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 0
[  174.755701] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

This issue occurs in the L4T 35.1 version, while the same capture program can consistently capture images in L4T R32.5.1.

Did you boost the clocks to try.

sudo su
echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
echo 1 > /sys/kernel/debug/bpmp/debug/clk/emc/mrq_rate_locked
cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
cat /sys/kernel/debug/bpmp/debug/clk/emc/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/emc/rate

Boosting the clock frequency still results in the same error message.