A provision in any contract or agreement that attempts or purports to waive the right to bring an action under this subtitle or reduce any liability for injury, death, or loss to person or property that is caused by a spill of oil or gas as a result of an offshore drilling activity is void as against public policy.