Auto merge of #17207 - Wilfred:serde_invalid_data, r=lnicola

fix: Report all LSP protocol errors with invalid_data

Previously we did not use invalid_data for serde errors, making it harder to understand errors when the client sends malformed data to the server.