I wouldn’t blame Windows for this one. In this case, this is likely because the Windows partition table wasn’t updated when you changed your C: partition, so Windows legitimately thought there was filesystem corruption because the size didn’t match its partition table.
You should always used the currently installed OS to free up space first, so it’s aware of the change. Then run the installer and install to the free space you made.
Or better yet, use separate physical drives for different OSes.