Usually caused by dirty cpu or cpu fan, defective hard drive, defective install on hard drive, bad memory module, bad video graphics card, or other bad PCI device... ore even power supply... so it takes some methodical trouble shooting...
Since you have tried it five times with different drives, you likely have a failed video card or memory module.
Can you cold boot to SAFE MODE? If so, you might have a defective video graphics card that fails in regular mode.
Download and run the free MemTest86 four four hours or 7 passes if it will run that long. Download and run the drive fitness test of the hard drive manufacturer to assure the hard drive is ok.
Remove all extra devices, and run a limited install to narrow down your scope of problems.
We don't understand what you mean by "...will work with win 98..."
Do you have a floppy drive? Can you run a boot install to the Windows 98 floppy disk with hard drive disconnected.
Has it always asked for "...custom or typical configuration..."?
The normal procedure is to unplug and reconnect all cables, memory, and other devices. Then try the most basic setup. Floppy drive or optical drive, single memory module, with no hard drive. Then add or change a component. Tedious, but helpful.