A number is a sum of two squares if and only if all primes $3$ mod $4$ appear only to even powers in its prime factorisation.
So we want arbitrarily long sequences of consecutive integers such that for each $n$ in the sequence, some prime $p \equiv 3 \pmod{4}$ appears to an odd power in the prime factorisation of $n$.
There are infinitely many primes $3$ mod $4$; say the $n$th is $p_n$.
Then we can guarantee that a number is divisible by $p_n$ but not $p_n^2$ by insisting that it be of the form $m$ where $m \equiv p_n \pmod{p_n^2}$.
By the Chinese remainder theorem, we can find $a$ such that $a+1 \equiv p_1 \pmod{p_1^2}$, $a+2 \equiv p_2 \pmod{p_2^2}$, and so on up to $a+k \equiv p_k \pmod{p_k^2}$. This is a sequence of $k$ consecutive integers, none of which is a sum of two squares.
For example, if $k=5$, we wish to find $a$ such that $$a+1 \equiv 3 \pmod{9} \\ a+2 \equiv 7 \pmod{49} \\ a+3 \equiv 11 \pmod{121} \\ a+4 \equiv 19 \pmod{361} \\ a+5 \equiv 23 \pmod{529}$$
The smallest such $a$ is $1789983137$ (and it is unique with this property modulo $10190296809$). Therefore $$ 1789983138,1789983139,1789983140,1789983141, 1789983142$$ is such a sequence. I emphasise that this is only one working sequence; in fact the smallest is $75, 76, 77, 78, 79$.