This is just to complete the answer by saying why with the minimal $N$ namely $N = 10$, we cannot improve on $M=7$ prisoners (i.e., $M=6$ prisoners is not achievable).
Whatever mix of bottles we feed to the prisoners, the "information" we get at the end of the experiment period is precisely a list of prisoners who died: some subset of the set of prisoners. If we had $N$ prisoners and up to $M$ of them could have died, this information is one of (up to)
$$\binom{N}{0} + \binom{N}{1} + \dots + \binom{N}{M}$$
possibilities. We cannot use this information to distinguish among $X$ possibilities if $X$ is greater than this number, so we need
$$ X \le \binom{N}{0} + \binom{N}{1} + \dots + \binom{N}{M} \quad (\le 2^N)$$
With $X = 950$ from $X \le 2^N$ we get $N \ge 10$, and with $N = 10$ the above inequality gives $M \ge 7$.
In other words, if at most $6$ of the $10$ prisoners die, then the information we get is one of $1 + 10 + 45 + 120 + 210 + 252 + 210 = 848$ sets, which is not enough for telling apart $950$ bottles. (Though you could go up to $11$ prisoners and have at most $5$ die, or use $13$ prisoners and have at most $4$ die, or use $18$ prisoners and have at most $3$ die, or $44$ prisoners and have at most $2$ die, or of course $949$ prisoners and have at most $1$ die.)