Desmos, 154 139139 137 bytes
Thanks @fireflame241 for helping me golf a couple of bytes (on Discord)
A=length(l)
B=[1...A-f]
Z=[0...A]
h(a,b)=\{\sum_{C=a}^bl[C]=0,0\}
f=\max((Z+1)\sign(\sum_{n=1}^{A-Zn=1+Z}h^Ah(n-Z,n+Zn)))
g(l)=[f,\max(Bh(B,[f...A]))]
99% sure thereUses Output Format #4. The first element in the outputted list is a better strategy to solving thisthe length of the subarray, but right now I don't see itwhile the second element is the starting index of the subarray in respect to the inputted array.