Just run it on Hetzner. You get 20TB egress monthly per server, which should cover a lot of DDOS activity.
You could also probably create a script to run on another machine that uses the Hetzner (or other cloud provider) API to monitor usage and shut off your server if it exceeds usage limits.