You have to Boot from the XP CD and you have to clean install XP to replace Vista using that method.
If it is a new Gateway I don't know what it is doing with Vista on it.
Vista has been unsupported since 2017.
Check at Gateway to see if they support and supply XP drivers for your exact Model Number.
Cheers.