A URL in staging will prevent blocks due to URL length errors, for example. RFC violations are a separate category. These can’t be put in staging but can be turned off. Best thing is to investigate why the request is non RFC compliant.
Compliance check is independent from the URL definitions.
If you don’t want it to be blocked, you need to identify which compliance violation was triggered and uncheck the block option for it on the policy blocking settings.