In the EU the principle is codified in the article 17 of the European Convention on Human Rights and in the Charter of Fundamental Rights of the European Union. They both prohibit the use of rights in a way that they nullify or weaken the rights provided by the agreements.
The principle also exists in the European contract law and property law. You can't use the property rights for the sole purpose of causing annoyance or violating other rights.
---
https://definitions.uslegal.com/a/abuse-of-rights/
At least one of four conditions is required to invoke the doctrine:
(1) the predominant motive for exercising the right is to cause harm;
(2) no serious or legitimate motive exists for exercising the right;
(3) the exercise of the right is against moral rules, good faith, or elementary fairness; or
(4) the right is exercised for a purpose other than that for which it was granted.
---
edit: In the common law systems it can exist under names like "nuisance, duress, good faith, economic waste, public policy, misuse of copyright and patent rights, lack of business purpose in tax law, extortion, and others" see: Abuse of Rights: A Pervasive Legal Concept https://ir.lawnet.fordham.edu/cgi/viewcontent.cgi?article=17...