Hello,
I just stumbled over your post now, because I have a similar problem, where we need to stop the H-Dynatrace header from being added for a specific request.
I think the best way to do this is to add the URL path you would like to exclude under the ‘URL-based sampling’ setting. You have to switch on the toggle for 'Ignore URLs with specific path and/or query parameters.
More about that solution here: Adaptive Traffic Management with Dynatrace Platform Subscription (DPS) — Dynatrace Docs
Another possibility is, to exclude the web request under ‘Deep monitoring’ → ‘Exclude specific incoming web request URLs’.
Here you can define URL paths that you would like to exclude from monitoring and alerting. I am not sure though, if this also prevents the x-dynatrace header from being set.

