Cancellation of divergences up to three loops in exceptional field theory