Background: The pentium IV CPU is very old. Newer CPU has gained new features. One of those is the NX bit which is used to enhance security.
Windows 7 can optionally use this.
Windows 8 and later require it.
So to install windows 10 you need a CPU with this hardware part in the CPU. And as far as I know there are no CPU's which support NX which fit in a P IV socket.