Return JSON-RPC errors instead of 500s for malformed requests and params

Merged
JU
10d ago
+442-5

Hi, while doing an audit of the codebase with Claude Code, it spotted that malformed requests could in many cases cause 500 server errors, with the error getting reported.

This PR adds validation to the places where the audit found they could trigger 500 server errors.