Hello,
you do not need to use "Send response Immediately" for this. your policy needs to be enhanced to handle error handling so if your validation logic fails you fails the policy and return a error to the requestor instead of routing to the backend
there are several approaches to this but here is a simple sample showing error handling as well as adding a custom header for the response for a validation error