Element for Correcting Invalid Video Buffers

This topic might be related to: GStreamer Discourse – gst_video_frame_map_id: assertion 'info->width <= meta->width' failed.

I am wondering if there is a GStreamer element that can process video buffers and, in case something is wrong with them, either fix or drop them. Currently, I am receiving a WebRTC stream, and many elements in my pipeline produce warnings, while the D3D11 elements are completely unable to handle these buffers, causing the entire pipeline to crash. Interestingly, if I insert a video mixer (compositor) before the D3D11 elements, it somehow “repairs” the stream, and the warnings disappear. Of course, using a video mixer is not ideal due to added latency and CPU usage, so I am curious whether there is a dedicated element specifically designed for this purpose.