Metabase is locked due to a migration lock in the H2 database, preventing it from running further migrations and starting up properly

I have Metabase instance running on a Google Kubernetes Engine (GKE) cluster using an H2 database for storage. The Metabase instance is failing to start, showing the following error:

Database has migration lock; cannot run migrations. You can force-release these locks by running java -jar metabase.jar migrate release-locks.

run java -jar metabase.jar migrate release-locks