It might help:
https://github.com/NeonVector/rosbag_converter_jazzy2humble
This repository provides a detailed description of this issue and the solution. Try this converter for your rosbag2 "metadata.yaml" file. It worked for my rosbags.