I am not aware of an option that does this for a specific URL.
My suggestion is to change the long_request_buffer_size as described in K01235989 and activate an iRule/LTM policy that blocks larger requests on all other URL and virtual servers (if needed).
Alternatively you can bypass the ASM for the path completely (K22021244)
Good point @ASCapi . From my experience I can say that the default value is low. However I wouldn’t give any recommendation for a one-size-fits-all value to apply in any environment.
For some violations using Microservices is great to stop the violation just for specific fqdn hostname and URL. Only method for microservices can’t be selected as this may need Request For Enhancement .