Test the RAM with memtest but it may not show errors and still be damaged. Its better to replace the RAM.
bad RAM is almost always the cause for errors during windows install.