This is crash inside FPC, so tell us FPC version.
Run FPC in Win10 console to show its version.
D:\lazarus\fpc\3.2.2\bin\x86_64-win64>fpc
Free Pascal Compiler version 3.2.2 [2022/05/15] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
D:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe [options] <inputfile> [options]
Only options valid for the default or selected platform are listed.
Put + after a boolean switch option to enable it, - to disable it.
@<x> Read compiler options from <x> in addition to the default fpc.cfg
-a The compiler does not delete the generated assembler file
-a5 Don't generate Big Obj COFF files for GNU Binutils older than 2.25 (Windows, NativeNT)
-al List sourcecode lines in assembler file
-an List node info in assembler file (-dEXTDEBUG compiler)
-ao Add an extra option to external assembler call (ignored for internal)
-ar List register allocation/release info in assembler file
-at List temp allocation/release info in assembler file
-A<x> Output format:
-Adefault Use default assembler
-Aas Assemble using GNU AS
-Agas Assemble using GNU GAS
-Agas-darwin Assemble darwin Mach-O64 using GNU GAS
-Amasm Win64 object file using ml64 (Microsoft)
Thanks for you all for the help!