ProtonMail is effective at thwarting the first. It sees headers and IP addresses, so the risk is theoretically there. But their technology, policies and the strength of Swiss privacy law [1] make them a less-ideal coöperator for the NSA than e.g. Google or Comcast.
With respect to the second, I feel like ProtonMail went out of their way to communicate their limits. They will comply with Swiss warrants. These are signed off on by a Swiss court and made pursuant to Swiss law. (They still don’t get to hand over your emails, which is an improvement over most other providers.)
Disclaimer: I used to use ProtonMail. I switched to Microsoft 365 because I need integrated calendaring and delegation.
[1] Third-partly doctrine doesn’t exist for e-mails in Switzerland. If the FBI asks ProtonMail for information, ProtonMail would be breaking Swiss law if they handed it over without a Swiss court signing a warrant.