N.D.C.C. § 30.1-20-05
(2-517, 3-905) Penalty clause for contest
A provision in a will purporting to penalize an interested person for contesting the will or instituting other proceedings relating to the estate is unenforceable if probable cause exists for instituting proceedings.