Gst_sample_get_caps: assertion 'GST_IS_SAMPLE (sample)' failed but VideoCapture::read() = true?

One of my cameras has a problem with certain exposure_absolute values where it reliably returns the following GST error:

GStreamer-CRITICAL **: 07:51:33.280: gst_sample_get_caps: assertion 'GST_IS_SAMPLE (sample)' failed
[ERROR:0@267.608] global cap_gstreamer.cpp:934 retrieveVideoFrame GStreamer: gst_sample_get_caps() returns NULL

Performing a read on the VideoCapture object returns true regardless, which seems counterintuitive and makes handling this error more difficult. Is this by design?