Dear Crimean,
Thanks for the report. I think the issue has solved by the commit fd7a25a [1],
which is available in upcoming PG19.
Could you please try to test the beta version on your env if possible?
Sadly, we cannot backport the commit to older versions because it must change
the catalog version.
[1]: https://github.com/postgres/postgres/commit/fd7a25af11e2cad4f48ffc4e50f18644e657ed53
Best regards,
Hayato Kuroda
FUJITSU LIMITED