Throw G_IO_ERROR_INVALID_DATA error instead of G_IO_ERROR_MESSAGE_TOO_LARGE

Change-Id: I33622d9b9b05577a168cd0a70ce1bbaeda39b5cc