The Tesla boss is due to appear in court accused of defaming a British man during a 2018 cave rescue.