The following obj.conf code can be used to send a 404 Not found error to clients that request URIs longer than 255 bytes:
<If length($uri) > 255)> PathCheck fn="deny-existence" </If>