So you want to find all natural numbers ##(n,m)## such that
[tex]4n^2 + 560n + 296 = 4m^2 + 4m[/tex]
Completing the square, we get
[tex](2n + 140)^2 - 19304 = (2m + 1)^2 - 1[/tex]
So if you have such numbers ##(m,n)##, then you have also found natural numbers ##(k,l)## (namely ##k = 2n+140## and ##l=2m+1##) such that
[tex]k^2 - l^2 = 19303[/tex]
Factorizing into primes, we get
[tex](k+l)(k-l) = 97\cdot 199[/tex]
So we have two situations:
First, we can have ##k-l = 97## and ##k+l = 199##. In this case, we have ##(k,l) = (148,51)##.
The second solution is where ##k-l = 1## and ##k+l = 19303##. In this case, we have ##(k,l) = (9652, 9651)##.
Those solutions ##(k,l)## have
[tex]k=2n+140~\text{and}~l = 2m+1[/tex]
In the first case, we have ##2n+140 = 148## and ##2m+1 = 51##. This gets us the solutions ##n=4## and ##m=25## you have also found.
In the second case, we have ##2n + 140 = 9652## and ##2m + 1 = 9651##. This gets us the solutions ##n=4756## and ##m=4852##.
The previous shows that these are the only solutions.