Did you manage to update it to 25? I am thinking of upgrading to 26 from version 18. What obstacles did you come across?
Did you have any problem with migration of DB (in particular keeping the same user IDs?)
If I were you, in case of using OIDC, I would try to upgrade from 18->19->21->24->25, because from 24 to 25, there are some changes we must do to make Keycloak work with OIDC.
I recently upgraded a customer directly from 10 to 26.1 without issues.
You “just” have to know what to to, this implies that you know what you have and how to change these things (code, configuration, etc.).
If there are a lot of realms and clients, play with transaction timeouts.
Do several dry-runs in a isolated environment with a copy of your prod-db.
Backup the prod-db before the actual update.
Do migration on a single node, no other nodes running during the process.
If in doubt, ask your Keycloak expert. If you don’t have one, find one. This invest is much more cheaper than failing too often alone.