riff: Validate the wav header size before trying to parse it