Does your CPU support SSE4.2? The error typically means that there was a failure when booting to the installer of the new OS, which is usually caused by unsupported CPU.
Windows 11 21H2 up to 23H2 supported virtually any 64 bit CPU apart from the very first Athlon 64s, 24H2 requires SSE 4.2...