Has anyone ever been successfully sued or fined over an IP-protected object in a shot where that object wasn't the focus?
Secondly, that is not what freedom of panorama means, it means you are allowed to take pictures of anything in the public space. See: https://expertphotography.com/freedom-of-panorama-photograph...
Thirdly, wikipedia has examples of litigations.
Fourthly, IP is not copyright. If you took a selfie with some top secret tech you signed an NDA not to reveal was in there you will probably get in big trouble
\/ yes probably
That's always a good sign the question wasn't clear.