For me, I created the h2 database file using 1.4.200 version of h2 JDBC driver and I was connecting to it via different h2 JDBC driver 2.3.232 version.
They have mentioned on their documentation
Between version 1.4.200 and version 2.0.202 there have been considerable changes, such that a simple update is not possible.
https://www.h2database.com/html/migration-to-v2.html
Make sure you are using the compatible version, things have changed after version 2.
This was the error I got:
[90048][90048] Unsupported database file version or invalid file header in file "/path/myDatabase.mv.db" [90048-232] The write format 1 is smaller than the supported format 3 [2.3.232/5].