When Windows XP was released in 2001 (and even SP3 in 2008), most systems still used Parallel ATA (PATA/IDE) hard drives. The default atapi.sys and pciide.sys drivers were designed for IDE mode. SATA drives, especially in AHCI mode, use a different command protocol.
There are two main ways to get your hands on a working image. 1. Pre-made Community ISOs (The Easy Way) windows xp with sata drivers iso
If you are building your own, make sure you have these specific controller drivers: When Windows XP was released in 2001 (and
If you prefer not to build your own, some community-maintained versions on Archive.org come with AHCI drivers pre-integrated. especially in AHCI mode