Sonos does play wave and flac without issue
The message not encoded properly often appears when there is wireless interference on the network
Try wiring a sonos speaker to ethernet which uses sonosnet and check wireless channel for this is different to router
John