Python 3.12 script crashes on windows 11 with 14900ks cpu

Yeah, it quite likely is. The CPU you’re running on has a known issue:

Have you applied the CPU microcode update (often via a BIOS update) required to fix this?