By the same token, exchanges will also freeze funds.
If you want to avoid that you have to follow the original Bitcoin vision where everyone had their own node, but I don't think anybody actually works like that these days, to a very small rounding error. Everything interacts with some sort of very centralized service that can screw you over.
Centralized node services cannot screw you over other than refusing to provide service. Even when using a centralized node, your wallet still manages its own keys.