Stop request after throwing exception in pre-request

i trying to get some information in pre-request script in call another api. and i checking response and want to stop request if throw exception.
now i receiving message but my request could not to stop and i sent request with wrong data.

how to stop request from pre-request?