The crash is caused by https://gitlab.com/freepascal.org/fpc/source/-/issues/39179
So this will be fixed with the upcoming 3.2.4.