Can you attach the reproducer files?
This looks a lot like https://github.com/llvm/llvm-project/issues/46236, which has not been solved yet. It still asserts with clang 18.