While lcov 2.0 was released 4 months ago, it seems meson didn’t yet catch up and resulted in error messages. So I gave it a helping hand and added lcov 2.0 support!
And the funny thing about this, the MR is numbered 12345.
https://github.com/mesonbuild/meson/pull/12345