OneDrive provides selective synchronization, in which you can choose to sync only the folders you need on your computer. The best way to solve this problem is to perform the sync again. If you're in a similar situation and see error 0x80004005 when playing files with Groove, then it could be due to a sync issue.
Whenever a file is not on the hard drive, but it is on OneDrive, it will be downloaded and used. A file downloaded on your computer will have a green tick next to it.
OneDrive allows you to sync files across multiple devices. The cause of unsupported codecs is a rare problem because Groove Music supports almost every audio format, but if nothing else works, it's best to check with another player. The error usually occurs when there are problems syncing files on OneDrive or if the codec is not supported. If you get Can't Play error 0x80004005 when trying to play music or audio files in Groove Music, this post will help you.