https://allaboutberlin.com/guides/pirating-streaming-movies-in-germany
I didn't know how Germans pirated and how they got caught, so I tried to do some research and found the article above, which is quite nice.
To summarize, your IP is visible to your ISP (internet service provider) and a law company can basically send a legal letter asking your ISP to identify you and you will be identified and your address and details will be given to the Lawyers. Now, you can either pay up or hire a lawyer and pay a lesser amount.
Now, the solution the article provided was, just use a VPN bro. But yes, VPNs can fail and not all VPNs allow you to torrent. So, how do these Germans pirate and not get caught?
PS: I obviously don't condone pirate, asking for a friend who is an author.
That's pretty much how it works in the US, FWIW. From my understanding there are torrenting clients that have a killswitch that stops the download immediately if your VPN fails.