The red X icon that shows up next to your files on Windows is actually a OneDrive warning sign. It indicates a syncing error, ...
If OneDrive is already set up correctly and working fine, then the yellow exclamation warning can be ... exclamation mark in the Windows Defender notification icon. If the issue persists, try ...