A world chess champion has quit one of the sport's most major competitions due to not adhering to a bizarre rule.