Sorry. I solved it myself.
HIKARICP bug!
https://github.com/brettwooldridge/HikariCP/issues/1388
https://github.com/brettwooldridge/HikariCP/pull/2238
It's been addressed here.
The above problem was not fixed in HIKARICP version 5.01.
Solution
https://github.com/brettwooldridge/HikariCP
Use the latest HIKARICP 6.3.0!! The problem has been fixed.
build.gradle
dependencies {
implementation("com.zaxxer:HikariCP:6.3.0")
}