I've seen so many folk do the following and no, it does not work. What? "switch SATA controller modes."

Here's the deal. You set the mode you want before you install Windows. As to the other drives, these must have backups PLUS be removed during an OS install or they risk getting wiped out. There are thousands of posts about this with some writing it will be fine and the screamers telling us they lost it all.