I have created a pull request to hopefully make this issue easier to investigate.
https://github.com/hibernate/hibernate-orm/pull/6805